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 ab3a7d78b8806..862a6429597b5 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')