summaryrefslogtreecommitdiff
path: root/runtime/js/40_signals.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/40_signals.js')
-rw-r--r--runtime/js/40_signals.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/runtime/js/40_signals.js b/runtime/js/40_signals.js
index a1b1897fc..c654dd2dd 100644
--- a/runtime/js/40_signals.js
+++ b/runtime/js/40_signals.js
@@ -1,7 +1,11 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { core, primordials } from "ext:core/mod.js";
-const ops = core.ops;
+const {
+ op_signal_bind,
+ op_signal_poll,
+ op_signal_unbind,
+} = core.ensureFastOps();
const {
SafeSet,
SafeSetIterator,
@@ -9,12 +13,9 @@ const {
SetPrototypeDelete,
TypeError,
} = primordials;
-const {
- op_signal_poll,
-} = core.ensureFastOps();
function bindSignal(signo) {
- return ops.op_signal_bind(signo);
+ return op_signal_bind(signo);
}
function pollSignal(rid) {
@@ -24,7 +25,7 @@ function pollSignal(rid) {
}
function unbindSignal(rid) {
- ops.op_signal_unbind(rid);
+ op_signal_unbind(rid);
}
// Stores signal listeners and resource data. This has type of