Skip to content

Commit 76416d6

Browse files
authored
Merge pull request #1287 from aleen42/master
2 parents 44f3ce9 + 674130b commit 76416d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core-js/internals/check-correctness-of-iteration.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ try {
2222
} catch (error) { /* empty */ }
2323

2424
module.exports = function (exec, SKIP_CLOSING) {
25-
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
25+
try {
26+
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
27+
} catch (error) { return false; } // workaround of old WebKit + `eval` bug
2628
var ITERATION_SUPPORT = false;
2729
try {
2830
var object = {};

0 commit comments

Comments
 (0)