diff options
Diffstat (limited to 'ext/node/polyfills/internal/event_target.mjs')
-rw-r--r-- | ext/node/polyfills/internal/event_target.mjs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/event_target.mjs b/ext/node/polyfills/internal/event_target.mjs index cb3f356d0..cad1ec5a4 100644 --- a/ext/node/polyfills/internal/event_target.mjs +++ b/ext/node/polyfills/internal/event_target.mjs @@ -19,6 +19,8 @@ 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"); @@ -95,7 +97,7 @@ class Event extends WebEvent { return name; } - const opts = Object.assign({}, options, { + const opts = ObjectAssign({}, options, { depth: NumberIsInteger(options.depth) ? options.depth - 1 : options.depth, }); |