Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/libembind.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ var LibraryEmbind = {
}
#if ASSERTIONS
else if (typeof value != "bigint") {
throw new TypeError(`Cannot convert "${embindRepr(value)}" to ${this.name}`);
throw new TypeError(`Cannot convert "${embindRepr(value)}" to ${name}`);
}
assertIntegerRange(name, value, minRange, maxRange);
#endif
Expand Down Expand Up @@ -404,7 +404,7 @@ var LibraryEmbind = {
toWireType: (destructors, value) => {
#if ASSERTIONS
if (typeof value != "number" && typeof value != "boolean") {
throw new TypeError(`Cannot convert ${embindRepr(value)} to ${this.name}`);
throw new TypeError(`Cannot convert ${embindRepr(value)} to ${name}`);
}
#endif
// The VM will perform JS to Wasm value conversion, according to the spec:
Expand Down
1 change: 0 additions & 1 deletion src/lib/libwasi.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var WasiLibrary = {
#endif

proc_exit__nothrow: true,
proc_exit__docs: '/** @noreturn */',
proc_exit: (code) => {
#if MINIMAL_RUNTIME
throw `exit(${code})`;
Expand Down
1 change: 0 additions & 1 deletion src/preamble.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ function postRun() {

/**
* @param {string|number=} what
* @noreturn
*/
function abort(what) {
#if expectToReceiveOnModule('onAbort')
Expand Down
3 changes: 1 addition & 2 deletions test/codesize/test_codesize_file_preload.expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ function postRun() {}

/**
* @param {string|number=} what
* @noreturn
*/ function abort(what) {
what = `Aborted(${what})`;
// TODO(sbc): Should we remove printing and leave it up to whoever
Expand Down Expand Up @@ -3082,7 +3081,7 @@ function _fd_write(fd, iov, iovcnt, pnum) {

var keepRuntimeAlive = () => true;

/** @noreturn */ var _proc_exit = code => {
var _proc_exit = code => {
EXITSTATUS = code;
if (!keepRuntimeAlive()) {
ABORT = true;
Expand Down
1 change: 0 additions & 1 deletion test/codesize/test_codesize_minimal_O0.expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ function postRun() {

/**
* @param {string|number=} what
* @noreturn
*/
function abort(what) {

Expand Down
16 changes: 8 additions & 8 deletions test/codesize/test_unoptimized_code_size.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"hello_world.js": 57030,
"hello_world.js.gz": 17755,
"hello_world.js": 56998,
"hello_world.js.gz": 17743,
"hello_world.wasm": 14850,
"hello_world.wasm.gz": 7311,
"no_asserts.js": 26654,
"no_asserts.js.gz": 8901,
"no_asserts.js": 26622,
"no_asserts.js.gz": 8888,
"no_asserts.wasm": 12010,
"no_asserts.wasm.gz": 5880,
"strict.js": 54848,
"strict.js.gz": 17063,
"strict.js": 54816,
"strict.js.gz": 17052,
"strict.wasm": 14850,
"strict.wasm.gz": 7311,
"total": 180242,
"total_gz": 64221
"total": 180146,
"total_gz": 64185
}
Loading