Right now it is difficult to know what argument stands for what property. By refactoring the arguments into a object it is clear what stands for what. Backport-PR-URL: https://github.com/nodejs/node/pull/23223 PR-URL: https://github.com/nodejs/node/pull/17582 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
15 lines
501 B
Text
15 lines
501 B
Text
Exiting with code=1
|
|
assert.js:*
|
|
throw new errors.AssertionError(obj);
|
|
^
|
|
|
|
AssertionError [ERR_ASSERTION]: 1 === 2
|
|
at Object.<anonymous> (*test*message*error_exit.js:*:*)
|
|
at Module._compile (module.js:*:*)
|
|
at Object.Module._extensions..js (module.js:*:*)
|
|
at Module.load (module.js:*:*)
|
|
at tryModuleLoad (module.js:*:*)
|
|
at Function.Module._load (module.js:*:*)
|
|
at Function.Module.runMain (module.js:*:*)
|
|
at startup (bootstrap_node.js:*:*)
|
|
at bootstrap_node.js:*:*
|