Commit 8f10557
committed
Fix fd_sync under pthreads
This function is marked as `__async: 'auto'` which means it should
return a promise when run in proxied mode on the main thread. However
it wasn't always returning a promise. Adding the `async` keyword
is the simplest way to ensure it always returns a promise.
Also, update the `wrapSyscallFunction` function to preserve the async
keyword.
Replaces: #262091 parent 93dcd26 commit 8f10557
File tree
5 files changed
+30
-16
lines changed- src/lib
- test
- fs
5 files changed
+30
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2605 | 2605 | | |
2606 | 2606 | | |
2607 | 2607 | | |
2608 | | - | |
| 2608 | + | |
2609 | 2609 | | |
2610 | 2610 | | |
2611 | 2611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | | - | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
552 | 552 | | |
553 | | - | |
554 | | - | |
555 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
556 | 558 | | |
| 559 | + | |
| 560 | + | |
557 | 561 | | |
| 562 | + | |
558 | 563 | | |
559 | 564 | | |
560 | 565 | | |
561 | 566 | | |
562 | | - | |
563 | 567 | | |
| 568 | + | |
564 | 569 | | |
565 | 570 | | |
566 | 571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1325 | 1325 | | |
1326 | 1326 | | |
1327 | 1327 | | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
| 1328 | + | |
1331 | 1329 | | |
1332 | 1330 | | |
1333 | 1331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
5525 | 5526 | | |
5526 | 5527 | | |
5527 | 5528 | | |
5528 | | - | |
| 5529 | + | |
| 5530 | + | |
| 5531 | + | |
| 5532 | + | |
| 5533 | + | |
| 5534 | + | |
| 5535 | + | |
| 5536 | + | |
| 5537 | + | |
| 5538 | + | |
5529 | 5539 | | |
5530 | 5540 | | |
5531 | 5541 | | |
| |||
0 commit comments