From 5ec478b5fa6261e2b2d3c8daed3cba9e780730c7 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Fri, 30 Apr 2021 16:38:35 +0200 Subject: 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 --- op_crates/url/benches/url_ops.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'op_crates') 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(); -- cgit v1.2.3