diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-29 17:22:00 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-29 17:22:00 -0700 |
commit | 5a6615db29fb7c1e28ca392fde9594b4d011c92c (patch) | |
tree | d07023a9c00a7653eb6b65c84656eaa5177018f8 /tools | |
parent | a1a0a86f662533273348f3199f0a7f7598fb5ce5 (diff) |
properly detect windows in eliminator
Diffstat (limited to 'tools')
-rw-r--r-- | tools/eliminator/eliminator.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eliminator/eliminator.coffee b/tools/eliminator/eliminator.coffee index 08407cd2..a4c98930 100644 --- a/tools/eliminator/eliminator.coffee +++ b/tools/eliminator/eliminator.coffee @@ -370,7 +370,7 @@ class ExpressionOptimizer # function, then writes the optimized result to stdout. main = -> # Get the parse tree. - if os.platform() != 'windows' + if os.platform().substr(0, 3) != 'win' src = fs.readFileSync('/dev/stdin').toString() else # The following seems to work on windows, but fails on linux.. |