diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-11 15:18:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-11 15:18:49 +0200 |
| commit | 0d1f626edd7c574ff0e70438cdb678dcb5c91170 (patch) | |
| tree | 8d80e4f32ba9535da4c387234b795385ee2f6492 /op_crates | |
| parent | 7c2e7c660804afca823d60e6496aa853f75db16c (diff) | |
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
Diffstat (limited to 'op_crates')
| -rw-r--r-- | op_crates/web/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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 } |
