summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/worker_threads.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-29 22:02:26 +0100
committerGitHub <noreply@github.com>2024-01-29 22:02:26 +0100
commit345423cf7697326258ce8b32f681910f4a2f77de (patch)
tree484dd157be01e3dc0d4f34f28526dac1804d0250 /ext/node/polyfills/worker_threads.ts
parent909986fa6ed3404e76590438b387391a6c213e46 (diff)
refactor: Use virtul ops module (#22175)
Follow up to #22157. This leaves us with 4 usages of `ensureFastOps()` in `deno` itself. There's also about 150 usages of `Deno.core.ops.<op_name>` left as well.
Diffstat (limited to 'ext/node/polyfills/worker_threads.ts')
-rw-r--r--ext/node/polyfills/worker_threads.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/node/polyfills/worker_threads.ts b/ext/node/polyfills/worker_threads.ts
index 4092cac51..785bf021d 100644
--- a/ext/node/polyfills/worker_threads.ts
+++ b/ext/node/polyfills/worker_threads.ts
@@ -5,9 +5,7 @@
// deno-lint-ignore-file prefer-primordials
import { core, internals } from "ext:core/mod.js";
-const {
- op_require_read_closest_package_json,
-} = core.ensureFastOps(true);
+import { op_require_read_closest_package_json } from "ext:core/ops";
import { isAbsolute, resolve } from "node:path";
import { notImplemented } from "ext:deno_node/_utils.ts";