This commit is contained in:
Alon Zakai 2013-08-19 15:17:09 -07:00
Родитель cd38275faf
Коммит a864b58025
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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): 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: if type(engine) is not list:
engine = [engine] 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( return timeout_run(
Popen( Popen(
command, command,