Files
NapCatQQ/.pnpm-store/v3/files/e5/67e28c8d4dc20cf06840a721dc4b00e006fefef434df7d48512c513ead6f6455711e51168fad11608fb9b07f7f3db09cbb65f2e215c9e016bad836ca4f29f3
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
494 B
Plaintext

'use strict';
var $TypeError = require('es-errors/type');
var isObject = require('es-object-atoms/isObject');
var $getProto = require('get-proto');
// https://262.ecma-international.org/7.0/#sec-ordinarygetprototypeof
module.exports = function OrdinaryGetPrototypeOf(O) {
if (!isObject(O)) {
throw new $TypeError('Assertion failed: O must be an Object');
}
if (!$getProto) {
throw new $TypeError('This environment does not support fetching prototypes.');
}
return $getProto(O);
};