add api/node_modules

This commit is contained in:
2025-02-27 17:37:49 +08:00
parent 499d157145
commit 71554afae8
957 changed files with 109182 additions and 1 deletions

17
api/node_modules/object-inspect/test/global.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
'use strict';
var inspect = require('../');
var test = require('tape');
var globalThis = require('globalthis')();
test('global object', function (t) {
/* eslint-env browser */
var expected = typeof window === 'undefined' ? 'globalThis' : 'Window';
t.equal(
inspect([globalThis]),
'[ { [object ' + expected + '] } ]'
);
t.end();
});