summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Abed <66989570+jake-abed@users.noreply.github.com>2024-09-13 10:01:07 -0700
committerGitHub <noreply@github.com>2024-09-13 22:31:07 +0530
commitd162733db2944b4c35d8c3e80f37f7de843dafa1 (patch)
tree4a6f758c9fa6fd47a6fc411046264ff541bcea7e
parent8539cacbbe7dd7e5bece23b971cf1792f9ade3e7 (diff)
fix(ext/node): use primordials in ext/node/polyfills/wasi.ts (#25608)
Toward #24236
-rw-r--r--ext/node/polyfills/wasi.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/node/polyfills/wasi.ts b/ext/node/polyfills/wasi.ts
index eba955d9c..4bdc776a4 100644
--- a/ext/node/polyfills/wasi.ts
+++ b/ext/node/polyfills/wasi.ts
@@ -1,7 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-// TODO(petamoriken): enable prefer-primordials for node polyfills
-// deno-lint-ignore-file prefer-primordials
+import { primordials } from "ext:core/mod.js";
+
+const { Error } = primordials;
class Context {
constructor() {