Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/escape-html/../querystring/../@protobufjs/../delayed-stream/../object-inspect/test
الملفات الموجودة في هذا الـ Path:
.
..
bigint.js
browser
circular.js
deep.js
element.js
err.js
fakes.js
fn.js
global.js
has.js
holes.js
indent-option.js
inspect.js
lowbyte.js
number.js
quoteStyle.js
toStringTag.js
undef.js
values.js

مشاهدة ملف: global.js

'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();
});