summaryrefslogtreecommitdiff
path: root/tests/node_compat/test/parallel/test-event-emitter-emit-context.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-06-11 12:41:44 +0100
committerGitHub <noreply@github.com>2024-06-11 11:41:44 +0000
commit6a356aff1380e79d67738c5b43aa2b5fee76600d (patch)
treebe4aadc62a523ff280820958a1a3829f1a18ca7d /tests/node_compat/test/parallel/test-event-emitter-emit-context.js
parent3d41b486da7dcba49c8a18b45425e356c329d986 (diff)
chore: sync up Node.js test files for v20.11.1 (#24066)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'tests/node_compat/test/parallel/test-event-emitter-emit-context.js')
-rw-r--r--tests/node_compat/test/parallel/test-event-emitter-emit-context.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/node_compat/test/parallel/test-event-emitter-emit-context.js b/tests/node_compat/test/parallel/test-event-emitter-emit-context.js
index 437a1fadb..76c22aa9a 100644
--- a/tests/node_compat/test/parallel/test-event-emitter-emit-context.js
+++ b/tests/node_compat/test/parallel/test-event-emitter-emit-context.js
@@ -15,7 +15,7 @@ const EE = new EventEmitter();
// Works as expected if the context has no `constructor.name`
{
- const ctx = Object.create(null);
+ const ctx = { __proto__: null };
assert.throws(
() => EE.emit.call(ctx, 'error', new Error('foo')),
common.expectsError({ name: 'Error', message: 'foo' })