Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function fail(actual, expected, message, operator, stackStartFn) {
} else {
if (warned === false) {
warned = true;
const warn = process.emitWarning ? process.emitWarning : console.warn.bind(console);
const warn = process && process.emitWarning ? process.emitWarning : console.warn.bind(console);
warn(
'assert.fail() with more than one argument is deprecated. ' +
'Please use assert.strictEqual() instead or only pass a message.',
Expand Down