This commit is contained in:
jiahong
2026-03-27 02:12:03 +08:00
parent 00bd6eef13
commit 021b3f82db
949 changed files with 99966 additions and 0 deletions
@@ -0,0 +1,11 @@
'use strict';
var $TypeError = require('es-errors/type');
/** @type {import('./RequireObjectCoercible')} */
module.exports = function RequireObjectCoercible(value) {
if (value == null) {
throw new $TypeError((arguments.length > 0 && arguments[1]) || ('Cannot call method on ' + value));
}
return value;
};