Something went wrong. Try again.
javascript for 🐜's, a tiny runtime with big ambitions antjs.org
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435// Test toStringTag for all modules
console.log('Testing Symbol.toStringTag for all modules:\n');
// Built-in modulesconsole.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 availableif (typeof Ant !== 'undefined' && crypto) { console.log('crypto:', Object.prototype.toString.call(crypto));}
// Test imported modulesconsole.log('\nTesting imported modules:');
// Import path moduleimport * as path from 'ant:path';console.log('path:', Object.prototype.toString.call(path));
// Import fs moduleimport * as fs from 'ant:fs';console.log('fs:', Object.prototype.toString.call(fs));
// Import shell moduleimport * as shell from 'ant:shell';console.log('shell:', Object.prototype.toString.call(shell));
// Import ffi moduleimport * as ffi from 'ant:ffi';console.log('ffi:', Object.prototype.toString.call(ffi));