From 9b70f2f34540909daf4f4bce5ab77e3bfb8f1bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 7 Oct 2020 17:20:20 +0200 Subject: refactor: rename isolate to js_runtime (#7858) This commit renames occurrences of "isolate" variable name to "js_runtime". This was outstanding debt after renaming deno_core::CoreIsolate to JsRuntime. --- cli/js.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/js.rs') 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( "", 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( "", r#" -- cgit v1.2.3