diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-30 17:33:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 15:33:28 +0000 |
commit | 381f5801f924f204e9b7a693d8f6e78e63a654b8 (patch) | |
tree | f96f7900da77636c6ae79dc60aedd53b0d18ed5e /ext/node/polyfills/internal/event_target.mjs | |
parent | e0429e2ad641e9207e00838de209ce33b3562f70 (diff) |
Revert "refactor(ext/node): Use Deno.inspect (#17960)" (#18491)
This reverts commit a3529d02329e0d2127ad2a5bb78b4c476ddd6984.
This change made debugging Node tests very hard - `AssertionError` is
now printed as `[Circular *1]` giving no visibility what failed.
We need to align two implementations together and remove this one then.
Diffstat (limited to 'ext/node/polyfills/internal/event_target.mjs')
-rw-r--r-- | ext/node/polyfills/internal/event_target.mjs | 4 |
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, }); |