Skip to content

Commit 6b6f7e7

Browse files
authored
Fix error reporting in fd_sync + ASYNCIFY. NFC (#19974)
I think the wakeUp function just takes the value to return to the resumed caller. I looks like this was perhaps wrong since it was first added back in #8808.
1 parent f4a1fce commit 6b6f7e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_wasi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ var WasiLibrary = {
552552
}
553553
mount.type.syncfs(mount, false, function(err) {
554554
if (err) {
555-
wakeUp(function() { return {{{ cDefs.EIO }}} });
555+
wakeUp({{{ cDefs.EIO }}});
556556
return;
557557
}
558558
wakeUp(0);

0 commit comments

Comments
 (0)