From 7b6339da6a22c361747d68945fe8aca3f78f013b Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Thu, 26 Jan 2023 20:26:42 +0900 Subject: fix(core): Add lint check for core (#17223) The prefer-primordials lint was skipped for `core/*.js`. --- core/02_error.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/02_error.js') 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)); } -- cgit v1.2.3