diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-26 20:04:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 14:04:07 -0500 |
commit | 942fb5e0388eab02f98c02541a3f90053afd59d1 (patch) | |
tree | af1cd1f358a37c8eab15c1a3ef7f3ee1be9548b6 /ext/node/polyfills/_fs/_fs_open.ts | |
parent | 9ed713153cf357dbf103dac2b8912729b4d10186 (diff) |
chore: upgrade deno_core (#22124)
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/node/polyfills/_fs/_fs_open.ts')
-rw-r--r-- | ext/node/polyfills/_fs/_fs_open.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/node/polyfills/_fs/_fs_open.ts b/ext/node/polyfills/_fs/_fs_open.ts index 9b4de4ce4..8bd989790 100644 --- a/ext/node/polyfills/_fs/_fs_open.ts +++ b/ext/node/polyfills/_fs/_fs_open.ts @@ -3,6 +3,8 @@ // TODO(petamoriken): enable prefer-primordials for node polyfills // deno-lint-ignore-file prefer-primordials +import { core } from "ext:core/mod.js"; +const { internalRidSymbol } = core; import { O_APPEND, O_CREAT, @@ -137,7 +139,7 @@ export function open( path as string, convertFlagAndModeToOptions(flags as openFlags, mode), ).then( - (file) => callback!(null, file[Symbol.for("Deno.internal.rid")]), + (file) => callback!(null, file[internalRidSymbol]), (err) => (callback as (err: Error) => void)(err), ); } @@ -189,7 +191,7 @@ export function openSync( return Deno.openSync( path as string, convertFlagAndModeToOptions(flags, mode), - )[Symbol.for("Deno.internal.rid")]; + )[internalRidSymbol]; } function existenceCheckRequired(flags: openFlags | number) { |