Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Wasm64] Run core tests under wamm64 as well as wasm64l
- Loading branch information
Showing
7 changed files
with
82 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
argc: 1 | ||
argv[0]: test_main_reads_args.js | ||
argv\[0\]: (test_main_reads_args\.js|this\.program) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
function onerror(e) { | ||
// MINIMAL_RUNTIME + EXIT_RUNTIME throws `exit(status)` when exit() is called | ||
// or when main is done. | ||
// Unlike the normal runtime it doesn't call process.exit. | ||
var message = e.message || e; | ||
var offset = message.indexOf('exit('); | ||
if (offset != -1) { | ||
var status = message.substring(offset + 5); | ||
offset = status.indexOf(')') | ||
status = status.substr(0, offset) | ||
process['exitCode'] = status; | ||
} else { | ||
console.log(e) | ||
process['exitCode'] = 1; | ||
if (typeof process != 'undefined') { | ||
function onerror(e) { | ||
// MINIMAL_RUNTIME + EXIT_RUNTIME throws `exit(status)` when exit() is called | ||
// or when main is done. | ||
// Unlike the normal runtime it doesn't call process.exit. | ||
var message = e.message || e; | ||
var offset = message.indexOf('exit('); | ||
if (offset != -1) { | ||
var status = message.substring(offset + 5); | ||
offset = status.indexOf(')') | ||
status = status.substr(0, offset) | ||
process['exitCode'] = status; | ||
} else { | ||
console.log(e) | ||
process['exitCode'] = 1; | ||
} | ||
} | ||
} | ||
|
||
// Unhandled rejections end up here too because we run node with --unhandled-rejections=throw | ||
process.on('uncaughtException', function(err, origin) { onerror(err); }); | ||
// Unhandled rejections end up here too because we run node with --unhandled-rejections=throw | ||
process.on('uncaughtException', function(err, origin) { onerror(err); }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters