Commit 84fe811
repl: display dynamic import variant in static import error messages
Enhance the REPL message for static import error message.
```
> import {foo, bar} from 'moo';
import {foo, bar} from 'moo';
^^^^^^
Uncaught:
SyntaxError: .* dynamic import: const {foo,bar} = await import('moo');
```
PR-URL: #48129
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent e60b6de commit 84fe811Copy full SHA for 84fe811
File tree
Expand file treeCollapse file tree
2 files changed
+95
-2
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+95
-2
lines changedOpen diff view settings
Collapse file
+27-1Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
| 46 | + |
46 | 47 | |
47 | 48 | |
48 | 49 | |
| ||
62 | 63 | |
63 | 64 | |
64 | 65 | |
| 66 | + |
65 | 67 | |
66 | 68 | |
67 | 69 | |
| ||
104 | 106 | |
105 | 107 | |
106 | 108 | |
| 109 | + |
107 | 110 | |
| 111 | + |
108 | 112 | |
109 | 113 | |
110 | 114 | |
| ||
223 | 227 | |
224 | 228 | |
225 | 229 | |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
226 | 252 | |
227 | 253 | |
228 | 254 | |
| ||
684 | 710 | |
685 | 711 | |
686 | 712 | |
687 | | - |
| 713 | + |
688 | 714 | |
689 | 715 | |
690 | 716 | |
|
Collapse file
+68-1Lines changed: 68 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
818 | 818 | |
819 | 819 | |
820 | 820 | |
821 | | - |
| 821 | + |
| 822 | + |
| 823 | + |
| 824 | + |
| 825 | + |
| 826 | + |
| 827 | + |
| 828 | + |
| 829 | + |
| 830 | + |
| 831 | + |
| 832 | + |
| 833 | + |
| 834 | + |
| 835 | + |
| 836 | + |
| 837 | + |
| 838 | + |
| 839 | + |
| 840 | + |
| 841 | + |
| 842 | + |
| 843 | + |
| 844 | + |
| 845 | + |
| 846 | + |
| 847 | + |
| 848 | + |
| 849 | + |
| 850 | + |
| 851 | + |
| 852 | + |
| 853 | + |
| 854 | + |
| 855 | + |
| 856 | + |
| 857 | + |
| 858 | + |
| 859 | + |
| 860 | + |
| 861 | + |
| 862 | + |
| 863 | + |
| 864 | + |
| 865 | + |
| 866 | + |
| 867 | + |
| 868 | + |
| 869 | + |
| 870 | + |
| 871 | + |
| 872 | + |
| 873 | + |
| 874 | + |
| 875 | + |
| 876 | + |
| 877 | + |
| 878 | + |
| 879 | + |
| 880 | + |
| 881 | + |
| 882 | + |
| 883 | + |
| 884 | + |
| 885 | + |
| 886 | + |
| 887 | + |
| 888 | + |
822 | 889 | |
823 | 890 | |
824 | 891 | |
|
0 commit comments