Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2918681
globalthis.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
889 B
Referenced Files
None
Subscribers
None
globalthis.js
View Options
import
{
test
,
summary
}
from
'./helpers.js'
;
console
.
log
(
'GlobalThis Tests\n'
);
test
(
'globalThis exists'
,
typeof
globalThis
,
'object'
);
test
(
'globalThis.console'
,
typeof
globalThis
.
console
,
'object'
);
test
(
'globalThis.setTimeout'
,
typeof
globalThis
.
setTimeout
,
'function'
);
test
(
'globalThis.Object'
,
globalThis
.
Object
===
Object
,
true
);
test
(
'globalThis.Array'
,
globalThis
.
Array
===
Array
,
true
);
test
(
'globalThis.Math'
,
globalThis
.
Math
===
Math
,
true
);
test
(
'globalThis.JSON'
,
globalThis
.
JSON
===
JSON
,
true
);
globalThis
.
testGlobal
=
42
;
test
(
'set on globalThis'
,
testGlobal
,
42
);
test
(
'process exists'
,
typeof
process
,
'object'
);
test
(
'process.env exists'
,
typeof
process
.
env
,
'object'
);
test
(
'process.argv exists'
,
typeof
process
.
argv
,
'object'
);
test
(
'process.exit exists'
,
typeof
process
.
exit
,
'function'
);
test
(
'process.cwd exists'
,
typeof
process
.
cwd
,
'function'
);
summary
();
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Mar 27, 1:11 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
512585
Default Alt Text
globalthis.js (889 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment