summaryrefslogtreecommitdiff
path: root/cli/js.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js.rs')
-rw-r--r--cli/js.rs16
1 files changed, 10 insertions, 6 deletions
diff --git a/cli/js.rs b/cli/js.rs
index b76e49391..09fe3f8fa 100644
--- a/cli/js.rs
+++ b/cli/js.rs
@@ -28,9 +28,11 @@ pub fn get_asset(name: &str) -> Option<&'static str> {
#[test]
fn cli_snapshot() {
- let mut isolate =
- deno::Isolate::new(deno::StartupData::Snapshot(CLI_SNAPSHOT), false);
- deno::js_check(isolate.execute(
+ let mut isolate = deno_core::Isolate::new(
+ deno_core::StartupData::Snapshot(CLI_SNAPSHOT),
+ false,
+ );
+ deno_core::js_check(isolate.execute(
"<anon>",
r#"
if (!window) {
@@ -43,9 +45,11 @@ fn cli_snapshot() {
#[test]
fn compiler_snapshot() {
- let mut isolate =
- deno::Isolate::new(deno::StartupData::Snapshot(COMPILER_SNAPSHOT), false);
- deno::js_check(isolate.execute(
+ let mut isolate = deno_core::Isolate::new(
+ deno_core::StartupData::Snapshot(COMPILER_SNAPSHOT),
+ false,
+ );
+ deno_core::js_check(isolate.execute(
"<anon>",
r#"
if (!compilerMain) {