Skip to content
Open
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
Loading