From 5ccfbacb8914bd220d67c95f9e9310c872eb987f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 10 Jul 2018 11:05:14 -0700 Subject: Proper error handling in add* and get* methods (#1570) See #1479 (comment) Also a one-line readme update, remove an obsolete compiler (mir2wasm) and add a new one (asterius). Also improve warning and error reporting in binaryen.js - show a stack trace when relevant (instead of node.js process.exit), and avoid atexit warning spam in debug builds. --- scripts/test/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/test/support.py') diff --git a/scripts/test/support.py b/scripts/test/support.py index f23e1c4de..d04a85c59 100644 --- a/scripts/test/support.py +++ b/scripts/test/support.py @@ -156,7 +156,7 @@ def run_command(cmd, expected_status=0, stderr=None, proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=stderr, universal_newlines=True) out, err = proc.communicate() code = proc.returncode - if code != expected_status: + if expected_status is not None and code != expected_status: raise Exception(('run_command failed (%s)' % code, out + str(err or ''))) err_correct = expected_err is None or \ (expected_err in err if err_contains else expected_err == err) -- cgit v1.2.3