summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/event_target.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/event_target.mjs')
-rw-r--r--ext/node/polyfills/internal/event_target.mjs4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/node/polyfills/internal/event_target.mjs b/ext/node/polyfills/internal/event_target.mjs
index cad1ec5a4..cb3f356d0 100644
--- a/ext/node/polyfills/internal/event_target.mjs
+++ b/ext/node/polyfills/internal/event_target.mjs
@@ -19,8 +19,6 @@ import {
} from "ext:deno_node/internal/util.mjs";
import { inspect } from "ext:deno_node/util.ts";
-const { ObjectAssign } = globalThis.__bootstrap.primordials;
-
const kIsEventTarget = Symbol.for("nodejs.event_target");
const kIsNodeEventTarget = Symbol("kIsNodeEventTarget");
@@ -97,7 +95,7 @@ class Event extends WebEvent {
return name;
}
- const opts = ObjectAssign({}, options, {
+ const opts = Object.assign({}, options, {
depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth,
});