diff options
Diffstat (limited to 'ext/node/polyfills/internal_binding/_libuv_winerror.ts')
-rw-r--r-- | ext/node/polyfills/internal_binding/_libuv_winerror.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/node/polyfills/internal_binding/_libuv_winerror.ts b/ext/node/polyfills/internal_binding/_libuv_winerror.ts index a62b27a7f..105adfb55 100644 --- a/ext/node/polyfills/internal_binding/_libuv_winerror.ts +++ b/ext/node/polyfills/internal_binding/_libuv_winerror.ts @@ -1,7 +1,10 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -const { ops } = globalThis.__bootstrap.core; +import { core } from "ext:core/mod.js"; +const { + op_node_sys_to_uv_error, +} = core.ensureFastOps(); export function uvTranslateSysError(sysErrno: number): string { - return ops.op_node_sys_to_uv_error(sysErrno); + return op_node_sys_to_uv_error(sysErrno); } |