diff options
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.js | 2 |
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' }) |