summaryrefslogtreecommitdiff
path: root/ext/fs/30_fs.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-02-07 02:16:08 +0100
committerGitHub <noreply@github.com>2024-02-07 02:16:08 +0100
commit043fee48fd72fbce2357e93431753db5b086cffd (patch)
tree49d254335953cc03e346d0fe7267eae5260652b8 /ext/fs/30_fs.js
parente54684864dee1c708325570eaaff2fce0f928387 (diff)
chore: upgrade deno_core to 0.259.0 (#22311)
This update brings number of ops available to user code down to 45.
Diffstat (limited to 'ext/fs/30_fs.js')
-rw-r--r--ext/fs/30_fs.js8
1 files changed, 4 insertions, 4 deletions
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);
}