Commit a45d1ad
committed
fix: clear pending exception before rejecting a builtin dynamic import
The dynamic-import builtin failure path rejected the resolver while the
exception caught from GetModule was still pending on the isolate; V8 API
calls with a pending exception are unsafe. The non-builtin path below
already resets before rejecting.
Reported by review on #1992.1 parent e63bf62 commit a45d1ad
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
| 891 | + | |
| 892 | + | |
891 | 893 | | |
892 | 894 | | |
893 | 895 | | |
| |||
0 commit comments