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