summaryrefslogtreecommitdiff
path: root/cli/js.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-04-22 20:24:49 +0200
committerBert Belder <bertbelder@gmail.com>2020-04-23 03:35:52 +0200
commit10a174834e6e59ea055d6098a07b82a3854a2db9 (patch)
tree36b9a082d4726a3f0f6c474fd48b59cac85fa762 /cli/js.rs
parentc43aaa39960bd1a79b4a3d768b62ea293e0ab79f (diff)
Upgrade to rusty_v8 v0.4.0 (#4856)
Diffstat (limited to 'cli/js.rs')
-rw-r--r--cli/js.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/js.rs b/cli/js.rs
index 746e49fe4..8a5821998 100644
--- a/cli/js.rs
+++ b/cli/js.rs
@@ -24,7 +24,7 @@ pub static WINDOW_LIB: &str = include_str!("js/lib.deno.window.d.ts");
#[test]
fn cli_snapshot() {
let mut isolate = deno_core::Isolate::new(
- deno_core::StartupData::Snapshot(CLI_SNAPSHOT),
+ deno_core::StartupData::Snapshot(deno_core::Snapshot::Static(CLI_SNAPSHOT)),
false,
);
deno_core::js_check(isolate.execute(
@@ -41,7 +41,9 @@ fn cli_snapshot() {
#[test]
fn compiler_snapshot() {
let mut isolate = deno_core::Isolate::new(
- deno_core::StartupData::Snapshot(COMPILER_SNAPSHOT),
+ deno_core::StartupData::Snapshot(deno_core::Snapshot::Static(
+ COMPILER_SNAPSHOT,
+ )),
false,
);
deno_core::js_check(isolate.execute(