This commit is contained in:
Oliver
2026-04-30 19:00:37 +00:00
parent f29df2b033
commit a1976dfa65
1007 changed files with 101609 additions and 0 deletions
+11
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;
};