Skip to content

Commit

Permalink
[Fix] ES5: CheckObjectCoercible: restore optMessage optional arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 18, 2024
1 parent 5a764fe commit 9bc077c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 5/CheckObjectCoercible.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ var RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');
// http://262.ecma-international.org/5.1/#sec-9.10

module.exports = function CheckObjectCoercible(value) {
return RequireObjectCoercible(value);
return RequireObjectCoercible(value, arguments.length > 1 ? arguments[1] : void undefined);
};

0 comments on commit 9bc077c

Please sign in to comment.