diff --git a/src/lib/libpthread.js b/src/lib/libpthread.js index 54c2f913cdc32..aa3a59f69eb29 100644 --- a/src/lib/libpthread.js +++ b/src/lib/libpthread.js @@ -1077,9 +1077,6 @@ var LibraryPThread = { '$runtimeKeepaliveCounter', #endif ], -#if ASYNCIFY - $invokeEntryPoint__async: true, -#endif $invokeEntryPoint: {{{ asyncIf(ASYNCIFY == 2) }}}(ptr, arg) => { #if PTHREADS_DEBUG dbg(`invokeEntryPoint: ${ptrToString(ptr)}`); diff --git a/src/utility.mjs b/src/utility.mjs index f3ffa770118ba..d9123a12be99b 100644 --- a/src/utility.mjs +++ b/src/utility.mjs @@ -151,6 +151,13 @@ export function mergeInto(obj, other, options = null) { const decoratorName = key.slice(index); const type = typeof other[key]; + if (decoratorName == '__async') { + const decorated = key.slice(0, index); + if (isJsOnlySymbol(decorated)) { + error(`__async decorator applied to JS symbol: ${decorated}`); + } + } + // Specific type checking for `__deps` which is expected to be an array // (not just any old `object`) if (decoratorName === '__deps') {