aboutsummaryrefslogtreecommitdiff
path: root/tools/jsrun.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-19 15:17:09 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-19 15:17:09 -0700
commita864b58025a0a41bf3eb00aa79d569ae9576c52f (patch)
tree52ba29e86522702d01d9058d9671f210d6531cb7 /tools/jsrun.py
parentcd38275faf739ba151c0aa7abe13703c9b8d8235 (diff)
use -- for jsc
Diffstat (limited to 'tools/jsrun.py')
-rw-r--r--tools/jsrun.py2
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,