diff --git a/src/lib/libembind.js b/src/lib/libembind.js index defd2498dcff9..19080626392f3 100644 --- a/src/lib/libembind.js +++ b/src/lib/libembind.js @@ -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 @@ -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: diff --git a/src/lib/libwasi.js b/src/lib/libwasi.js index e83ba664d6b4b..ca3a218553d99 100644 --- a/src/lib/libwasi.js +++ b/src/lib/libwasi.js @@ -17,7 +17,6 @@ var WasiLibrary = { #endif proc_exit__nothrow: true, - proc_exit__docs: '/** @noreturn */', proc_exit: (code) => { #if MINIMAL_RUNTIME throw `exit(${code})`; diff --git a/src/preamble.js b/src/preamble.js index d92557f5757b2..bb7d09e98ce46 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -237,7 +237,6 @@ function postRun() { /** * @param {string|number=} what - * @noreturn */ function abort(what) { #if expectToReceiveOnModule('onAbort') diff --git a/test/codesize/test_codesize_file_preload.expected.js b/test/codesize/test_codesize_file_preload.expected.js index 785751e68113b..1ab70743544e1 100644 --- a/test/codesize/test_codesize_file_preload.expected.js +++ b/test/codesize/test_codesize_file_preload.expected.js @@ -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 @@ -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; diff --git a/test/codesize/test_codesize_minimal_O0.expected.js b/test/codesize/test_codesize_minimal_O0.expected.js index 5e1a96d0fa02f..90ccede8fa797 100644 --- a/test/codesize/test_codesize_minimal_O0.expected.js +++ b/test/codesize/test_codesize_minimal_O0.expected.js @@ -510,7 +510,6 @@ function postRun() { /** * @param {string|number=} what - * @noreturn */ function abort(what) { diff --git a/test/codesize/test_unoptimized_code_size.json b/test/codesize/test_unoptimized_code_size.json index e65e5f2049dff..f9e256d7fbca2 100644 --- a/test/codesize/test_unoptimized_code_size.json +++ b/test/codesize/test_unoptimized_code_size.json @@ -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 }