diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-01-26 20:26:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 16:56:42 +0530 |
commit | 7b6339da6a22c361747d68945fe8aca3f78f013b (patch) | |
tree | a2472b6e036f1dd711fe9a8eb44e439c015f344e /core/02_error.js | |
parent | 87c2493855e73fb433b965040bb64cc51632c454 (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.js | 3 |
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)); } |