fix corner case in keep_fargs (#5477)

fixes #5476
This commit is contained in:
Alex Lam S.L
2022-05-29 05:10:19 +01:00
committed by GitHub
parent 2152f00de2
commit 8bc03dc6c4
4 changed files with 45 additions and 7 deletions

View File

@@ -2329,7 +2329,7 @@ function is_error_tdz(ex) {
}
function is_error_spread(ex) {
return ex.name == "TypeError" && /Found non-callable @@iterator| is not iterable| not a function/.test(ex.message);
return ex.name == "TypeError" && /Found non-callable @@iterator| is not iterable| not a function|Symbol\(Symbol\.iterator\)/.test(ex.message);
}
function is_error_recursion(ex) {