summaryrefslogtreecommitdiff
path: root/cli/js.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-01-28 03:12:25 +0100
committerRyan Dahl <ry@tinyclouds.org>2020-01-27 21:12:25 -0500
commitac10d79d231d3b66b918764b9706597321850687 (patch)
tree6a781c58075ee0c68091e71d2ffd2bb898dc9dfd /cli/js.rs
parentf604becaba0c747fdf8dd9d0d744c7bd19322e41 (diff)
refactor: isomorphic snapshot for CLI (#3728)
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 57516a239..2e9adf1b4 100644
--- a/cli/js.rs
+++ b/cli/js.rs
@@ -28,7 +28,7 @@ fn cli_snapshot() {
deno_core::js_check(isolate.execute(
"<anon>",
r#"
- if (!window) {
+ if (!(bootstrapMainRuntime && bootstrapWorkerRuntime)) {
throw Error("bad");
}
console.log("we have console.log!!!");
@@ -45,7 +45,7 @@ fn compiler_snapshot() {
deno_core::js_check(isolate.execute(
"<anon>",
r#"
- if (!bootstrapTsCompiler) {
+ if (!(bootstrapTsCompilerRuntime && bootstrapTsCompilerRuntime)) {
throw Error("bad");
}
console.log(`ts version: ${ts.version}`);