summaryrefslogtreecommitdiff
path: root/op_crates/web/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/web/lib.rs')
-rw-r--r--op_crates/web/lib.rs10
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
}