diff options
author | gahaas <ahaas@google.com> | 2016-08-23 09:49:15 -0700 |
---|---|---|
committer | Ben Smith <binjimin@gmail.com> | 2016-08-23 09:49:15 -0700 |
commit | e771a3b9d3ac4ea19ff3be45983276b844213d4e (patch) | |
tree | ad573df8c6675bfa59a6cd9ad61737b5d72f15f3 /test/gen-spec-js.py | |
parent | 2d375e8d502327e814d62a08f22da9d9b6b675dc (diff) | |
download | wabt-e771a3b9d3ac4ea19ff3be45983276b844213d4e.tar.gz wabt-e771a3b9d3ac4ea19ff3be45983276b844213d4e.tar.bz2 wabt-e771a3b9d3ac4ea19ff3be45983276b844213d4e.zip |
Fix error message in the generated invoke function (#97)
The error message wanted to print some file name and line number, but these values are not passed to invoke(). Additionally I propose to increase the passed and failed counters in invoke.
Diffstat (limited to 'test/gen-spec-js.py')
-rwxr-xr-x | test/gen-spec-js.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gen-spec-js.py b/test/gen-spec-js.py index d32d7b1c..45e72c3d 100755 --- a/test/gen-spec-js.py +++ b/test/gen-spec-js.py @@ -117,8 +117,10 @@ function assertTrap(module, name, file, line) { function invoke(module, name) { try { var invokeResult = module.exports[name](); + passed++; } catch(e) { - print(file + ":" + line + ": " + name + " unexpectedly threw: " + e); + print(name + " unexpectedly threw: " + e); + failed++; } if (!quiet) |