qauMaWeb/node_modules/core-js/internals/require-object-coercible.js

11 lines
302 B
JavaScript
Raw Normal View History

2024-10-13 18:02:27 +08:00
var global = require('../internals/global');
var TypeError = global.TypeError;
// `RequireObjectCoercible` abstract operation
// https://tc39.es/ecma262/#sec-requireobjectcoercible
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};