diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-06 21:44:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 21:44:29 +0200 |
commit | f57a2c1e85387afe48b7bdb57176dafb156bb86e (patch) | |
tree | c198f7c965a883acacc9c1410c620d6290cd43ef /op_crates/web/lib.rs | |
parent | 16a9c92aba9ba8376393d6df4fa9677ac6113578 (diff) |
refactor(core): rename CoreIsolate to JsRuntime (#7373)
deno_core/
- rename core_isolate.rs to runtime.rs
- rename CoreIsolate to JsRuntime
- rename JSError to JsError
- rename JSStackFrame to JsStackFrame
cli/
- update references from deno_core::CoreIsolate to deno_core::JsRuntime
- rename deno_core::JSError to deno_core::JsError
- rename fmt_errors::JSError to fmt_errors::JsError
Diffstat (limited to 'op_crates/web/lib.rs')
-rw-r--r-- | op_crates/web/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/op_crates/web/lib.rs b/op_crates/web/lib.rs index 674eddbb2..a1ad31a61 100644 --- a/op_crates/web/lib.rs +++ b/op_crates/web/lib.rs @@ -1,10 +1,10 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. use deno_core::js_check; -use deno_core::CoreIsolate; +use deno_core::JsRuntime; use std::path::PathBuf; -pub fn init(isolate: &mut CoreIsolate) { +pub fn init(isolate: &mut JsRuntime) { let files = vec![ get_path("00_dom_exception.js"), get_path("01_event.js"), @@ -32,7 +32,7 @@ fn get_path(file_name: &str) -> PathBuf { mod tests { use deno_core::js_check; use deno_core::BasicState; - use deno_core::CoreIsolate; + use deno_core::JsRuntime; use deno_core::StartupData; use futures::future::lazy; use futures::future::FutureExt; @@ -46,9 +46,9 @@ mod tests { futures::executor::block_on(lazy(move |cx| f(cx))); } - fn setup() -> CoreIsolate { + fn setup() -> JsRuntime { let mut isolate = - CoreIsolate::new(BasicState::new(), StartupData::None, false); + JsRuntime::new(BasicState::new(), StartupData::None, false); crate::init(&mut isolate); isolate } |