mirror of
https://github.com/encounter/phantomjs.git
synced 2026-03-30 11:35:11 -07:00
51c8c9cc62
To prevent unintended macro expansion, don't use the name stdout/stdin/stderr in the native System object. Those properties are achieved by shadowing it in the module interface (JavaScript side). https://github.com/ariya/phantomjs/issues/12496
9 lines
307 B
JavaScript
9 lines
307 B
JavaScript
var assert = require('../../assert');
|
|
var system = require('system');
|
|
|
|
assert.typeOf(system.stdout, 'object');
|
|
assert.typeOf(system.stdout.write, 'function');
|
|
assert.typeOf(system.stdout.writeLine, 'function');
|
|
assert.typeOf(system.stdout.flush, 'function');
|
|
assert.typeOf(system.stdout.close, 'function');
|