Commit 9b45662
committed
Return value from callable to work around VM issue
Due to dart-lang/sdk#56064, Dart stable 3.4
reports an exception on native calls involving `NativeCallable`s
returning `null` (which they do for `void`).
This exception is not critical as it only occurs when a debugger is
attached, but it's still annoying and easy to work around by returning
a bogus value then dropped.
Closes simolus3#2421 parent db5077b commit 9b45662
3 files changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
| |||
711 | 714 | | |
712 | 715 | | |
713 | 716 | | |
714 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
715 | 720 | | |
716 | 721 | | |
717 | 722 | | |
| |||
721 | 726 | | |
722 | 727 | | |
723 | 728 | | |
724 | | - | |
| 729 | + | |
725 | 730 | | |
726 | | - | |
| 731 | + | |
| 732 | + | |
727 | 733 | | |
728 | 734 | | |
729 | 735 | | |
| |||
757 | 763 | | |
758 | 764 | | |
759 | 765 | | |
760 | | - | |
761 | | - | |
762 | | - | |
| 766 | + | |
| 767 | + | |
763 | 768 | | |
764 | 769 | | |
765 | 770 | | |
766 | | - | |
767 | | - | |
768 | 771 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments