From 0d1f626edd7c574ff0e70438cdb678dcb5c91170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 11 Sep 2020 15:18:49 +0200 Subject: refactor(core): JsRuntime initialization (#7415) Removes: - "deno_core::StartupData" - "deno_core::Script" - "deno_core::OwnedScript" Changes to "JsRuntime": - remove "new_with_loader()" - remove "with_heap_limits()" - rename "IsolateOptions" to "RuntimeOptions" and make public - "JsRuntime::new()" takes "RuntimeOptions" as a single param --- op_crates/web/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'op_crates/web') diff --git a/op_crates/web/lib.rs b/op_crates/web/lib.rs index 03107524a..96f269a1d 100644 --- a/op_crates/web/lib.rs +++ b/op_crates/web/lib.rs @@ -34,7 +34,6 @@ pub fn get_declaration() -> PathBuf { mod tests { use deno_core::js_check; use deno_core::JsRuntime; - use deno_core::StartupData; use futures::future::lazy; use futures::future::FutureExt; use futures::task::Context; @@ -48,7 +47,7 @@ mod tests { } fn setup() -> JsRuntime { - let mut isolate = JsRuntime::new(StartupData::None, false); + let mut isolate = JsRuntime::new(Default::default()); crate::init(&mut isolate); isolate } -- cgit v1.2.3