MCPcopy
hub / github.com/webpack/webpack / createRealm

Function createRealm

test/test262.spectest.js:624–632  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

622 return vm.runInContext(code, context, options);
623 },
624 createRealm() {
625 const newSandbox = vm.runInNewContext("this");
626 const newContext = vm.createContext(newSandbox);
627 const newHost = create262Host(newContext);
628
629 newHost.global = newContext;
630
631 return newHost;
632 }
633});
634
635const createImportModuleDynamically =

Callers

nothing calls this directly

Calls 1

create262HostFunction · 0.85

Tested by

no test coverage detected