summaryrefslogtreecommitdiff
path: root/ext/net/01_net.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/net/01_net.js')
-rw-r--r--ext/net/01_net.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/net/01_net.js b/ext/net/01_net.js
index 1523f5aa5..50f4971f5 100644
--- a/ext/net/01_net.js
+++ b/ext/net/01_net.js
@@ -5,9 +5,9 @@ const {
BadResourcePrototype,
InterruptedPrototype,
internalRidSymbol,
+ createCancelHandle,
} = core;
import {
- op_cancel_handle,
op_dns_resolve,
op_net_accept_tcp,
op_net_accept_unix,
@@ -67,7 +67,7 @@ async function resolveDns(query, recordType, options) {
let abortHandler;
if (options?.signal) {
options.signal.throwIfAborted();
- cancelRid = op_cancel_handle();
+ cancelRid = createCancelHandle();
abortHandler = () => core.tryClose(cancelRid);
options.signal[abortSignal.add](abortHandler);
}