first
This commit is contained in:
11
node_modules/core-js/internals/require-object-coercible.js
generated
vendored
Normal file
11
node_modules/core-js/internals/require-object-coercible.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
var isNullOrUndefined = require('../internals/is-null-or-undefined');
|
||||
|
||||
var $TypeError = TypeError;
|
||||
|
||||
// `RequireObjectCoercible` abstract operation
|
||||
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
||||
module.exports = function (it) {
|
||||
if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
|
||||
return it;
|
||||
};
|
Reference in New Issue
Block a user