summaryrefslogtreecommitdiff
path: root/cli/js.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-10-07 17:20:20 +0200
committerGitHub <noreply@github.com>2020-10-07 17:20:20 +0200
commit9b70f2f34540909daf4f4bce5ab77e3bfb8f1bed (patch)
tree38f4ea4d00953faa2e9ca7ec4edb9cdd17355e87 /cli/js.rs
parent83f6def3c62e7f336516d59881e8f9f7846d9024 (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.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#"