Commit 34d70ce
vm: expose cachedDataRejected for vm.compileFunction
Having this information available is useful for functions just as
it is for scripts. Therefore, expose it in the same way that other
information related to code caching is reported.
As part of this, de-duplify the code for setting the properties on
the C++ side and add proper exception handling to it.
PR-URL: #46320
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent 88b904c commit 34d70ceCopy full SHA for 34d70ce
File tree
Expand file treeCollapse file tree
5 files changed
+114
-55
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- src
- test/parallel
Expand file treeCollapse file tree
5 files changed
+114
-55
lines changedOpen diff view settings
Collapse file
+6Lines changed: 6 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
962 | 962 | |
963 | 963 | |
964 | 964 | |
| 965 | + |
| 966 | + |
| 967 | + |
| 968 | + |
| 969 | + |
| 970 | + |
965 | 971 | |
966 | 972 | |
967 | 973 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
90 | 90 | |
91 | 91 | |
92 | 92 | |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
93 | 97 | |
94 | 98 | |
95 | 99 | |
|
Collapse file
+76-49Lines changed: 76 additions & 49 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
| 52 | + |
52 | 53 | |
53 | 54 | |
54 | 55 | |
| ||
58 | 59 | |
59 | 60 | |
60 | 61 | |
| 62 | + |
61 | 63 | |
62 | 64 | |
63 | 65 | |
| ||
857 | 859 | |
858 | 860 | |
859 | 861 | |
860 | | - |
861 | | - |
862 | | - |
863 | | - |
864 | | - |
865 | | - |
866 | | - |
867 | | - |
868 | | - |
869 | | - |
870 | | - |
871 | | - |
872 | | - |
873 | | - |
874 | | - |
875 | | - |
876 | | - |
877 | | - |
878 | | - |
879 | | - |
880 | | - |
881 | | - |
882 | | - |
| 862 | + |
| 863 | + |
| 864 | + |
883 | 865 | |
884 | 866 | |
885 | | - |
886 | | - |
887 | | - |
888 | | - |
889 | | - |
| 867 | + |
| 868 | + |
| 869 | + |
| 870 | + |
| 871 | + |
| 872 | + |
| 873 | + |
| 874 | + |
| 875 | + |
| 876 | + |
| 877 | + |
| 878 | + |
| 879 | + |
| 880 | + |
| 881 | + |
| 882 | + |
890 | 883 | |
891 | 884 | |
892 | 885 | |
893 | 886 | |
| 887 | + |
| 888 | + |
| 889 | + |
| 890 | + |
| 891 | + |
| 892 | + |
| 893 | + |
| 894 | + |
| 895 | + |
| 896 | + |
| 897 | + |
| 898 | + |
| 899 | + |
| 900 | + |
| 901 | + |
| 902 | + |
| 903 | + |
| 904 | + |
| 905 | + |
| 906 | + |
| 907 | + |
| 908 | + |
| 909 | + |
| 910 | + |
| 911 | + |
| 912 | + |
| 913 | + |
| 914 | + |
| 915 | + |
| 916 | + |
| 917 | + |
| 918 | + |
| 919 | + |
| 920 | + |
| 921 | + |
| 922 | + |
| 923 | + |
| 924 | + |
| 925 | + |
| 926 | + |
| 927 | + |
| 928 | + |
| 929 | + |
| 930 | + |
894 | 931 | |
895 | 932 | |
896 | 933 | |
| ||
1242 | 1279 | |
1243 | 1280 | |
1244 | 1281 | |
| 1282 | + |
1245 | 1283 | |
1246 | | - |
1247 | | - |
1248 | | - |
1249 | | - |
1250 | | - |
1251 | | - |
1252 | | - |
1253 | | - |
1254 | | - |
1255 | | - |
1256 | | - |
1257 | | - |
1258 | | - |
1259 | | - |
1260 | | - |
1261 | | - |
1262 | | - |
1263 | | - |
1264 | | - |
1265 | | - |
1266 | | - |
| 1284 | + |
| 1285 | + |
| 1286 | + |
| 1287 | + |
| 1288 | + |
| 1289 | + |
| 1290 | + |
| 1291 | + |
| 1292 | + |
| 1293 | + |
1267 | 1294 | |
1268 | 1295 | |
1269 | 1296 | |
|
Collapse file
+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
199 | 199 | |
200 | 200 | |
201 | 201 | |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
202 | 210 | |
203 | 211 | |
204 | 212 | |
|
Collapse file
test/parallel/test-vm-basic.js
Copy file name to clipboardExpand all lines: test/parallel/test-vm-basic.js+20-6Lines changed: 20 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
323 | 323 | |
324 | 324 | |
325 | 325 | |
326 | | - |
327 | | - |
328 | | - |
329 | | - |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
330 | 332 | |
331 | | - |
332 | | - |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
333 | 347 | |
334 | 348 | |
335 | 349 | |
|
0 commit comments