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
8 lines
253 B
JavaScript
8 lines
253 B
JavaScript
var assert = require('../../assert');
|
|
var system = require('system');
|
|
|
|
assert.typeOf(system.stdin, 'object');
|
|
assert.typeOf(system.stdin.read, 'function');
|
|
assert.typeOf(system.stdin.readLine, 'function');
|
|
assert.typeOf(system.stdin.close, 'function');
|