summaryrefslogtreecommitdiff
path: root/cli/js.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js.rs')
-rw-r--r--cli/js.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js.rs b/cli/js.rs
index beb8df192..d51d7dd92 100644
--- a/cli/js.rs
+++ b/cli/js.rs
@@ -30,11 +30,11 @@ pub fn compiler_isolate_init() -> Snapshot {
#[test]
fn cli_snapshot() {
- let mut isolate = deno_core::JsRuntime::new(deno_core::RuntimeOptions {
+ let mut js_runtime = deno_core::JsRuntime::new(deno_core::RuntimeOptions {
startup_snapshot: Some(deno_isolate_init()),
..Default::default()
});
- isolate
+ js_runtime
.execute(
"<anon>",
r#"
@@ -49,11 +49,11 @@ fn cli_snapshot() {
#[test]
fn compiler_snapshot() {
- let mut isolate = deno_core::JsRuntime::new(deno_core::RuntimeOptions {
+ let mut js_runtime = deno_core::JsRuntime::new(deno_core::RuntimeOptions {
startup_snapshot: Some(compiler_isolate_init()),
..Default::default()
});
- isolate
+ js_runtime
.execute(
"<anon>",
r#"