summaryrefslogtreecommitdiff
path: root/core/error_builder_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/error_builder_test.js')
-rw-r--r--core/error_builder_test.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/error_builder_test.js b/core/error_builder_test.js
index 8a3ca0383..7f8965127 100644
--- a/core/error_builder_test.js
+++ b/core/error_builder_test.js
@@ -1,5 +1,6 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
const { core } = Deno;
+const { ops } = core;
class DOMException {
constructor(message, code) {
@@ -16,7 +17,7 @@ core.registerErrorBuilder(
);
try {
- core.opSync("op_err", undefined, null);
+ ops.op_err();
throw new Error("op_err didn't throw!");
} catch (err) {
if (!(err instanceof DOMException)) {