diff options
Diffstat (limited to 'packages/bun-polyfills/src/repl.ts')
-rw-r--r-- | packages/bun-polyfills/src/repl.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/bun-polyfills/src/repl.ts b/packages/bun-polyfills/src/repl.ts index 5cf673701..030e479b0 100644 --- a/packages/bun-polyfills/src/repl.ts +++ b/packages/bun-polyfills/src/repl.ts @@ -1,4 +1,5 @@ import bun from './index.js'; +import * as jsc from './modules/jsc.js'; // This file serves two purposes: // 1. It is the entry point for using the Bun global in the REPL. (--import this file) @@ -12,7 +13,6 @@ globalThis.Bun = bun as typeof bun & { deepMatch: typeof import('bun').deepMatch; build: typeof import('bun').build; mmap: typeof import('bun').mmap; - gc: typeof import('bun').gc; connect: typeof import('bun').connect; listen: typeof import('bun').listen; Transpiler: typeof import('bun').Transpiler; @@ -27,3 +27,5 @@ globalThis.Bun = bun as typeof bun & { stderr: typeof import('bun').stderr; stdin: typeof import('bun').stdin; }; + +Reflect.set(globalThis, 'jsc', jsc); |