diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-10-07 17:20:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 17:20:20 +0200 |
commit | 9b70f2f34540909daf4f4bce5ab77e3bfb8f1bed (patch) | |
tree | 38f4ea4d00953faa2e9ca7ec4edb9cdd17355e87 /cli/js.rs | |
parent | 83f6def3c62e7f336516d59881e8f9f7846d9024 (diff) |
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.
Diffstat (limited to 'cli/js.rs')
-rw-r--r-- | cli/js.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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#" |