From a0898388fbf5a0e12873830e4714e72b18f14e0a Mon Sep 17 00:00:00 2001 From: David Majda Date: Sun, 12 Feb 2012 19:16:42 +0100 Subject: [PATCH] /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. --- bin/pegjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pegjs b/bin/pegjs index 8c2048b..24dd9e6 100755 --- a/bin/pegjs +++ b/bin/pegjs @@ -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;