summaryrefslogtreecommitdiff
path: root/core/02_error.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/02_error.js')
-rw-r--r--core/02_error.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/02_error.js b/core/02_error.js
index 2798b1aa7..b29dc9b4e 100644
--- a/core/02_error.js
+++ b/core/02_error.js
@@ -130,7 +130,8 @@
__callSiteEvals: { __proto__: null, value: [], configurable: true },
});
const formattedCallSites = [];
- for (const cse of callSiteEvals) {
+ for (let i = 0; i < callSiteEvals.length; ++i) {
+ const cse = callSiteEvals[i];
ArrayPrototypePush(error.__callSiteEvals, cse);
ArrayPrototypePush(formattedCallSites, formatCallSiteEval(cse));
}