jiangping
2025-07-15 175b824c049502e81ddcec7e17f104fce7804cd6
1
2
3
4
5
6
7
8
9
10
11
'use strict';
var isObject = require('../internals/is-object');
 
var $String = String;
var $TypeError = TypeError;
 
// `Assert: Type(argument) is Object`
module.exports = function (argument) {
  if (isObject(argument)) return argument;
  throw new $TypeError($String(argument) + ' is not an object');
};