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

21 lines
549 B
Plaintext

'use strict';
var result = require('./')();
var test = {
__proto__: null,
foo: {}
};
/** @type {import('./accessor')} */
module.exports = function hasAccessor() {
/* eslint no-proto: 0 */
return result
&& !('toString' in test)
// eslint-disable-next-line no-extra-parens
&& /** @type {{ __proto__?: typeof Object.prototype }} */ ({}).__proto__ === Object.prototype
// eslint-disable-next-line no-extra-parens
&& /** @type {ReadonlyArray<never> & { __proto__?: typeof Array.prototype }} */ (
[]).__proto__ === Array.prototype;
};