Skip to content

Commit 753b3bf

Browse files
authored
Fix for none proxying mode (#22824)
It looks like this mode was broken from the moment it as added back in PR #20110. However it went unnoticed since it was only being used with a single function: `__syscall_fadvise64`. Split out from #22820.
1 parent d097f6d commit 753b3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsifier.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function(${args}) {
326326
if (proxyingMode !== 'sync' && proxyingMode !== 'async' && proxyingMode !== 'none') {
327327
throw new Error(`Invalid proxyingMode ${symbol}__proxy: '${proxyingMode}' specified!`);
328328
}
329-
if (SHARED_MEMORY) {
329+
if (SHARED_MEMORY && proxyingMode != 'none') {
330330
const sync = proxyingMode === 'sync';
331331
if (PTHREADS) {
332332
snippet = modifyJSFunction(snippet, (args, body, async_, oneliner) => {

0 commit comments

Comments
 (0)