Urara-Blog/node_modules/.pnpm-store/v3/files/a0/8748f92081ca8faa924d510380bfc72f2d2df027af531b156013fb049ec6dc89528b56c4ddb90860ef64d0816eb41f5aae83ea8e3df266a6c53ceab4b4b786
2022-08-14 01:14:53 +08:00

14 lines
345 B
Text

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
// http://262.ecma-international.org/5.1/#sec-9.10
module.exports = function CheckObjectCoercible(value, optMessage) {
if (value == null) {
throw new $TypeError(optMessage || ('Cannot call method on ' + value));
}
return value;
};