Page MenuHomePhorge

test_all_modules.cjs
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

test_all_modules.cjs

// Test toStringTag for all modules
console.log('Testing Symbol.toStringTag for all modules:\n');
// Built-in modules
console.log('Atomics:', Object.prototype.toString.call(Atomics));
console.log('console:', Object.prototype.toString.call(console));
console.log('JSON:', Object.prototype.toString.call(JSON));
console.log('process:', Object.prototype.toString.call(process));
console.log('Buffer:', Object.prototype.toString.call(Buffer));
// Test crypto if available
if (typeof Ant !== 'undefined' && crypto) {
console.log('crypto:', Object.prototype.toString.call(crypto));
}
// Test imported modules
console.log('\nTesting imported modules:');
// Import path module
import * as path from 'ant:path';
console.log('path:', Object.prototype.toString.call(path));
// Import fs module
import * as fs from 'ant:fs';
console.log('fs:', Object.prototype.toString.call(fs));
// Import shell module
import * as shell from 'ant:shell';
console.log('shell:', Object.prototype.toString.call(shell));
// Import ffi module
import * as ffi from 'ant:ffi';
console.log('ffi:', Object.prototype.toString.call(ffi));

File Metadata

Mime Type
application/javascript
Expires
Fri, Mar 27, 1:04 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
512052
Default Alt Text
test_all_modules.cjs (1 KB)

Event Timeline