/bin/pegjs: Avoid calling |process.openStdin|

While |process.openStdin| is not officially deprecated, it's no longer
documented and just using |process.stdin| and resuming it seems to be
the official way.
redux
David Majda 13 years ago
parent de256105eb
commit a0898388fb

@ -100,7 +100,8 @@ while (args.length > 0 && isOption(args[0])) {
switch (args.length) {
case 0:
var inputStream = process.openStdin();
process.stdin.resume();
var inputStream = process.stdin;
var outputStream = process.stdout;
break;

Loading…
Cancel
Save