diff --git a/src/library.js b/src/library.js index ac00d4b869cde..913aaa72d1041 100644 --- a/src/library.js +++ b/src/library.js @@ -399,8 +399,8 @@ addToLibrary({ #if !STANDALONE_WASM // Use to implement that native `abort` symbol. Note that we use the - // disctive JavaScript `abort` helper in order to implement this function, - // but we use a ditict name here to avoid confusing the two. + // JavaScript `abort` helper in order to implement this function, but we use a + // distinct name here to avoid confusing the two. _abort_js: () => { #if ASSERTIONS abort('native code called abort()'); diff --git a/system/lib/libc/musl/src/exit/abort.c b/system/lib/libc/musl/src/exit/abort.c index ad451832e9a9d..3c742acc85ad6 100644 --- a/system/lib/libc/musl/src/exit/abort.c +++ b/system/lib/libc/musl/src/exit/abort.c @@ -13,11 +13,11 @@ _Noreturn void abort(void) { #if __EMSCRIPTEN__ - /* In emscripten we call out JS to perform that actual abort where it can - * produce nice error. - * Note that JS library function not called `abort` to avoid conflit with - * the JavaScript abort helper (which takes a JS string and is used to - * implement _abort_js) */ + /* In emscripten we call out JS to perform the actual abort where it can + * produce a nice error. + * Note that the JS library function not called `abort` to avoid conflict with + * the JavaScript abort helper (which takes a JS string as an argument and is + * itself used to implement _abort_js) */ _abort_js(); #else raise(SIGABRT); diff --git a/system/lib/standalone/standalone.c b/system/lib/standalone/standalone.c index 5dbf967796c9a..727a0d009a5cc 100644 --- a/system/lib/standalone/standalone.c +++ b/system/lib/standalone/standalone.c @@ -36,6 +36,7 @@ void _abort_js(void) { __builtin_trap(); + /* Beyond this point should be unreachable. */ _Exit(117); }