diff --git a/test/parallel/test-event-emitter-num-args.js b/test/parallel/test-event-emitter-num-args.js index 2de86fdf08b0d6..8bb22743033ca4 100644 --- a/test/parallel/test-event-emitter-num-args.js +++ b/test/parallel/test-event-emitter-num-args.js @@ -50,5 +50,5 @@ e.emit('numArgs', null, null, null, null, null); e.emit('foo', null, null, null, null); process.on('exit', function() { - assert.deepStrictEqual([0, 1, 2, 3, 4, 5, 4, 4], num_args_emitted); + assert.deepStrictEqual(num_args_emitted, [0, 1, 2, 3, 4, 5, 4, 4]); });