diff options
Diffstat (limited to 'src/js/node/vm.ts')
| -rw-r--r-- | src/js/node/vm.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/js/node/vm.ts b/src/js/node/vm.ts index 678ab20b9..331f4fbc6 100644 --- a/src/js/node/vm.ts +++ b/src/js/node/vm.ts @@ -1,11 +1,7 @@ // Hardcoded module "node:vm" import { throwNotImplemented } from "../shared"; -const lazy = globalThis[Symbol.for("Bun.lazy")]; -if (!lazy || typeof lazy !== "function") { - throw new Error("Something went wrong while loading Bun. Expected 'Bun.lazy' to be defined."); -} -const vm = lazy("vm"); +const vm = $lazy("vm"); const { createContext, isContext, Script, runInNewContext, runInThisContext } = vm; |
