6 lines
162 B
JavaScript
Raw Normal View History

2025-04-19 15:38:48 +08:00
// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};