mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
remove bootstrap methods from global scope after bootstrapping (#4869)
This commit is contained in:
parent
912a57f6a2
commit
1378df3364
12 changed files with 42 additions and 39 deletions
|
@ -30,7 +30,7 @@ fn cli_snapshot() {
|
|||
deno_core::js_check(isolate.execute(
|
||||
"<anon>",
|
||||
r#"
|
||||
if (!(bootstrapMainRuntime && bootstrapWorkerRuntime)) {
|
||||
if (!(bootstrap.mainRuntime && bootstrap.workerRuntime)) {
|
||||
throw Error("bad");
|
||||
}
|
||||
console.log("we have console.log!!!");
|
||||
|
@ -49,7 +49,7 @@ fn compiler_snapshot() {
|
|||
deno_core::js_check(isolate.execute(
|
||||
"<anon>",
|
||||
r#"
|
||||
if (!(bootstrapTsCompilerRuntime && bootstrapTsCompilerRuntime)) {
|
||||
if (!(bootstrap.tsCompilerRuntime && bootstrap.wasmCompilerRuntime)) {
|
||||
throw Error("bad");
|
||||
}
|
||||
console.log(`ts version: ${ts.version}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue