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
3 changes: 0 additions & 3 deletions src/lib/libpthread.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
Expand Down
7 changes: 7 additions & 0 deletions src/utility.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
Loading