jiangping
2025-07-16 7c50e4ce6be2929057b61afb9ef1ee7a61beb6f6
1
2
3
4
5
6
7
8
9
10
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 new $TypeError("Can't call method on " + it);
  return it;
};