This commit is contained in:
2026-03-24 17:54:45 +08:00
parent 4e139450ac
commit 9e57eee51d
591 changed files with 62396 additions and 376 deletions

View File

@@ -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;
};