Simon Priet 9e2991e668 init
2021-09-05 22:53:58 +02:00

11 lines
457 B
JavaScript

t.equal(eval('typeof process'), 'object');
t.equal(eval('typeof process.nextTick'), 'function');
t.equal(eval('typeof global'), 'object');
t.equal(eval('global.xyz'), 555);
t.equal(eval('typeof Buffer'), 'function');
t.equal(eval('typeof __filename'), 'string');
t.notEqual(eval('__filename'), 'sandbox __filename');
t.equal(eval('typeof __dirname'), 'string');
t.notEqual(eval('__dirname'), 'sandbox __dirname');
t.equal(eval('custom'), 'sandbox custom');