summaryrefslogtreecommitdiff
path: root/op_crates
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-30 16:38:35 +0200
committerGitHub <noreply@github.com>2021-04-30 10:38:35 -0400
commit5ec478b5fa6261e2b2d3c8daed3cba9e780730c7 (patch)
tree9662acbbfca40b2a5aea25b63f239e39bd254c37 /op_crates
parentf31ee8d1bfc50de6cef5b746f6fd6431b7b772e5 (diff)
refactor(core): initialize extensions in runtime constructor (#10421)
This ensures that provided extensions are all correctly setup and ready to use once the JsRuntime constructor returns Note: this will also initialize ops for to-be-snapshotted runtimes
Diffstat (limited to 'op_crates')
-rw-r--r--op_crates/url/benches/url_ops.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/op_crates/url/benches/url_ops.rs b/op_crates/url/benches/url_ops.rs
index 18b2f300e..8b3cf2705 100644
--- a/op_crates/url/benches/url_ops.rs
+++ b/op_crates/url/benches/url_ops.rs
@@ -10,9 +10,6 @@ fn create_js_runtime() -> JsRuntime {
..Default::default()
});
- runtime.init_extension_js().unwrap();
- runtime.init_extension_ops().unwrap();
-
runtime
.execute("setup", "const { URL } = globalThis.__bootstrap.url;")
.unwrap();