summaryrefslogtreecommitdiff
path: root/cli/js.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-25 01:03:45 +0200
committerGitHub <noreply@github.com>2020-04-25 01:03:45 +0200
commit1378df33647e2608733d88121b77ff2f839cddfa (patch)
treee2ecdf2028761e88eeb777d93bdd807384a36863 /cli/js.rs
parent912a57f6a20c632c306f4e044df7618a3971abbf (diff)
remove bootstrap methods from global scope after bootstrapping (#4869)
Diffstat (limited to 'cli/js.rs')
-rw-r--r--cli/js.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js.rs b/cli/js.rs
index 08392aa92..6b4cb2eac 100644
--- a/cli/js.rs
+++ b/cli/js.rs
@@ -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}`);