Commit c16963b
src: break on uncaught exception
Most TryCatch blocks have SetVerbose flag on, this tells V8 to report
uncaught exceptions to debugger.
FatalException handler is called from V8 Message listener instead from
the place where TryCatch was used. Otherwise uncaught exceptions are
logged twice.
See comment in `deps/v8/include/v8.h` for explanation of SetVerbose
flag:
> By default, exceptions that are caught by an external exception
> handler are not reported. Call SetVerbose with true on an
> external exception handler to have exceptions caught by the
> handler reported as if they were not caught.
The flag is used by `Isolate::ShouldReportException()`, which is called
by `Isolate::DoThrow()` to decide whether an exception is considered
uncaught.1 parent 4bc024d commit c16963bCopy full SHA for c16963b
File tree
Expand file treeCollapse file tree
9 files changed
+211
-34
lines changedOpen diff view settings
Filter options
- src
- test
- fixtures/uncaught-exceptions
- simple
Expand file treeCollapse file tree
9 files changed
+211
-34
lines changedOpen diff view settings
Collapse file
+59-31Lines changed: 59 additions & 31 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
908 | 908 | |
909 | 909 | |
910 | 910 | |
| 911 | + |
911 | 912 | |
912 | 913 | |
913 | 914 | |
| ||
922 | 923 | |
923 | 924 | |
924 | 925 | |
925 | | - |
926 | 926 | |
927 | 927 | |
928 | 928 | |
929 | 929 | |
930 | 930 | |
931 | 931 | |
932 | 932 | |
933 | | - |
934 | 933 | |
935 | 934 | |
936 | 935 | |
| ||
940 | 939 | |
941 | 940 | |
942 | 941 | |
943 | | - |
944 | 942 | |
945 | 943 | |
946 | 944 | |
| ||
954 | 952 | |
955 | 953 | |
956 | 954 | |
957 | | - |
958 | 955 | |
959 | 956 | |
960 | 957 | |
| ||
981 | 978 | |
982 | 979 | |
983 | 980 | |
| 981 | + |
984 | 982 | |
985 | 983 | |
986 | 984 | |
987 | 985 | |
988 | | - |
989 | 986 | |
990 | 987 | |
991 | 988 | |
| ||
998 | 995 | |
999 | 996 | |
1000 | 997 | |
1001 | | - |
1002 | 998 | |
1003 | 999 | |
1004 | 1000 | |
| ||
1131 | 1127 | |
1132 | 1128 | |
1133 | 1129 | |
1134 | | - |
| 1130 | + |
1135 | 1131 | |
1136 | 1132 | |
1137 | 1133 | |
| ||
1140 | 1136 | |
1141 | 1137 | |
1142 | 1138 | |
1143 | | - |
1144 | | - |
1145 | | - |
1146 | | - |
1147 | 1139 | |
1148 | 1140 | |
1149 | 1141 | |
| ||
1197 | 1189 | |
1198 | 1190 | |
1199 | 1191 | |
1200 | | - |
| 1192 | + |
1201 | 1193 | |
1202 | 1194 | |
1203 | | - |
| 1195 | + |
1204 | 1196 | |
1205 | | - |
| 1197 | + |
| 1198 | + |
1206 | 1199 | |
1207 | 1200 | |
1208 | | - |
| 1201 | + |
1209 | 1202 | |
1210 | 1203 | |
1211 | 1204 | |
1212 | 1205 | |
1213 | 1206 | |
1214 | | - |
1215 | 1207 | |
1216 | 1208 | |
1217 | 1209 | |
| ||
1229 | 1221 | |
1230 | 1222 | |
1231 | 1223 | |
| 1224 | + |
| 1225 | + |
| 1226 | + |
| 1227 | + |
| 1228 | + |
| 1229 | + |
1232 | 1230 | |
1233 | 1231 | |
1234 | 1232 | |
1235 | 1233 | |
1236 | 1234 | |
| 1235 | + |
| 1236 | + |
| 1237 | + |
| 1238 | + |
1237 | 1239 | |
1238 | 1240 | |
1239 | | - |
| 1241 | + |
1240 | 1242 | |
1241 | 1243 | |
1242 | 1244 | |
1243 | 1245 | |
1244 | 1246 | |
1245 | | - |
| 1247 | + |
1246 | 1248 | |
1247 | 1249 | |
1248 | 1250 | |
| ||
1869 | 1871 | |
1870 | 1872 | |
1871 | 1873 | |
1872 | | - |
| 1874 | + |
| 1875 | + |
1873 | 1876 | |
1874 | 1877 | |
1875 | 1878 | |
| ||
1880 | 1883 | |
1881 | 1884 | |
1882 | 1885 | |
1883 | | - |
| 1886 | + |
1884 | 1887 | |
1885 | 1888 | |
1886 | 1889 | |
1887 | 1890 | |
1888 | 1891 | |
1889 | | - |
1890 | | - |
1891 | | - |
1892 | 1892 | |
1893 | 1893 | |
| 1894 | + |
| 1895 | + |
| 1896 | + |
1894 | 1897 | |
1895 | | - |
| 1898 | + |
1896 | 1899 | |
1897 | 1900 | |
1898 | 1901 | |
1899 | | - |
| 1902 | + |
1900 | 1903 | |
1901 | 1904 | |
1902 | 1905 | |
1903 | 1906 | |
1904 | | - |
| 1907 | + |
1905 | 1908 | |
1906 | 1909 | |
1907 | 1910 | |
1908 | 1911 | |
1909 | 1912 | |
| 1913 | + |
| 1914 | + |
| 1915 | + |
| 1916 | + |
| 1917 | + |
| 1918 | + |
| 1919 | + |
| 1920 | + |
| 1921 | + |
| 1922 | + |
| 1923 | + |
| 1924 | + |
| 1925 | + |
| 1926 | + |
| 1927 | + |
1910 | 1928 | |
1911 | 1929 | |
1912 | 1930 | |
| ||
2416 | 2434 | |
2417 | 2435 | |
2418 | 2436 | |
| 2437 | + |
| 2438 | + |
| 2439 | + |
| 2440 | + |
| 2441 | + |
2419 | 2442 | |
2420 | 2443 | |
2421 | 2444 | |
2422 | | - |
| 2445 | + |
2423 | 2446 | |
2424 | 2447 | |
2425 | 2448 | |
| ||
2445 | 2468 | |
2446 | 2469 | |
2447 | 2470 | |
2448 | | - |
| 2471 | + |
| 2472 | + |
| 2473 | + |
| 2474 | + |
| 2475 | + |
| 2476 | + |
| 2477 | + |
2449 | 2478 | |
2450 | | - |
2451 | | - |
2452 | | - |
| 2479 | + |
2453 | 2480 | |
2454 | 2481 | |
2455 | 2482 | |
| ||
2936 | 2963 | |
2937 | 2964 | |
2938 | 2965 | |
| 2966 | + |
2939 | 2967 | |
2940 | 2968 | |
2941 | 2969 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
133 | 133 | |
134 | 134 | |
135 | 135 | |
136 | | - |
| 136 | + |
137 | 137 | |
138 | 138 | |
139 | 139 | |
|
Collapse file
+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
401 | 401 | |
402 | 402 | |
403 | 403 | |
| 404 | + |
| 405 | + |
| 406 | + |
| 407 | + |
404 | 408 | |
405 | 409 | |
406 | 410 | |
| ||
411 | 415 | |
412 | 416 | |
413 | 417 | |
414 | | - |
| 418 | + |
415 | 419 | |
416 | 420 | |
417 | 421 | |
| ||
444 | 448 | |
445 | 449 | |
446 | 450 | |
447 | | - |
| 451 | + |
448 | 452 | |
449 | 453 | |
450 | 454 | |
|
Collapse file
test/fixtures/uncaught-exceptions/domain.js
Copy file name to clipboard+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
Collapse file
test/fixtures/uncaught-exceptions/global.js
Copy file name to clipboard+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
Collapse file
test/fixtures/uncaught-exceptions/parse-error-mod.js
Copy file name to clipboard+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
Collapse file
test/fixtures/uncaught-exceptions/parse-error.js
Copy file name to clipboard+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
Collapse file
test/fixtures/uncaught-exceptions/timeout.js
Copy file name to clipboard+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
0 commit comments