mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-26 22:15:06 +08:00
11 lines
302 B
JavaScript
11 lines
302 B
JavaScript
|
|
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;
|
||
|
|
};
|