summaryrefslogtreecommitdiff
path: root/core/02_error.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-01-26 20:26:42 +0900
committerGitHub <noreply@github.com>2023-01-26 16:56:42 +0530
commit7b6339da6a22c361747d68945fe8aca3f78f013b (patch)
treea2472b6e036f1dd711fe9a8eb44e439c015f344e /core/02_error.js
parent87c2493855e73fb433b965040bb64cc51632c454 (diff)
fix(core): Add lint check for core (#17223)
The prefer-primordials lint was skipped for `core/*.js`.
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));
}