From 043fee48fd72fbce2357e93431753db5b086cffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 7 Feb 2024 02:16:08 +0100 Subject: chore: upgrade deno_core to 0.259.0 (#22311) This update brings number of ops available to user code down to 45. --- ext/fs/30_fs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/fs') diff --git a/ext/fs/30_fs.js b/ext/fs/30_fs.js index aa7f345e5..46358c42a 100644 --- a/ext/fs/30_fs.js +++ b/ext/fs/30_fs.js @@ -4,9 +4,9 @@ import { core, internals, primordials } from "ext:core/mod.js"; const { isDate, internalRidSymbol, + createCancelHandle, } = core; import { - op_cancel_handle, op_fs_chdir, op_fs_chmod_async, op_fs_chmod_sync, @@ -823,7 +823,7 @@ async function readFile(path, options) { let abortHandler; if (options?.signal) { options.signal.throwIfAborted(); - cancelRid = op_cancel_handle(); + cancelRid = createCancelHandle(); abortHandler = () => core.tryClose(cancelRid); options.signal[abortSignal.add](abortHandler); } @@ -853,7 +853,7 @@ async function readTextFile(path, options) { let abortHandler; if (options?.signal) { options.signal.throwIfAborted(); - cancelRid = op_cancel_handle(); + cancelRid = createCancelHandle(); abortHandler = () => core.tryClose(cancelRid); options.signal[abortSignal.add](abortHandler); } @@ -899,7 +899,7 @@ async function writeFile( let abortHandler; if (options.signal) { options.signal.throwIfAborted(); - cancelRid = op_cancel_handle(); + cancelRid = createCancelHandle(); abortHandler = () => core.tryClose(cancelRid); options.signal[abortSignal.add](abortHandler); } -- cgit v1.2.3