diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-19 15:17:09 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-19 15:17:09 -0700 |
commit | a864b58025a0a41bf3eb00aa79d569ae9576c52f (patch) | |
tree | 52ba29e86522702d01d9058d9671f210d6531cb7 /tools/jsrun.py | |
parent | cd38275faf739ba151c0aa7abe13703c9b8d8235 (diff) |
use -- for jsc
Diffstat (limited to 'tools/jsrun.py')
-rw-r--r-- | tools/jsrun.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/jsrun.py b/tools/jsrun.py index 27c55350..571e9cee 100644 --- a/tools/jsrun.py +++ b/tools/jsrun.py @@ -15,7 +15,7 @@ def timeout_run(proc, timeout, note='unnamed process', full_output=False): def run_js(filename, engine=None, args=[], check_timeout=False, stdout=PIPE, stderr=None, cwd=None, full_output=False): if type(engine) is not list: engine = [engine] - command = engine + [filename] + (['--'] if 'd8' in engine[0] else []) + args + command = engine + [filename] + (['--'] if 'd8' in engine[0] or 'jsc' in engine[0] else []) + args return timeout_run( Popen( command, |