From 13a91a69f87df98a31030d602f629a9a20f8a9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 31 Jan 2024 22:39:56 +0100 Subject: refactor: remove imported ops from Deno.core.ops (#22194) This commit adds a list of ops to `runtime/99_main.js` that are currently relying on getting them from `Deno.core.ops`. All ops that are not present in the list are removed from `Deno.core.ops` on startup (they are imported from "virtual op module" - `ext:core/ops`) making them effectively inaccessible to user code. This change lowers the number of ops exposed to user code from 650 to around 260. This number should be gradually decreased in follow-up PRs. --- cli/tests/integration/js_unit_tests.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/tests/integration/js_unit_tests.rs') diff --git a/cli/tests/integration/js_unit_tests.rs b/cli/tests/integration/js_unit_tests.rs index 7680ee7a1..15d377aaa 100644 --- a/cli/tests/integration/js_unit_tests.rs +++ b/cli/tests/integration/js_unit_tests.rs @@ -61,6 +61,7 @@ util::unit_test_factory!( network_interfaces_test, opcall_test, os_test, + ops_test, path_from_url_test, performance_test, permissions_test, -- cgit v1.2.3