auto-fixed prefer-const violation

This commit is contained in:
Johannes
2022-06-08 17:49:21 +02:00
parent aa23a0dbb7
commit 0656d21d11
862 changed files with 6489 additions and 6489 deletions

View File

@@ -99,7 +99,7 @@ const testModules = (async function () {
return promise.then(files => {
const modules = [];
for (let file of files) {
for (const file of files) {
if (!minimatch(file, excludeGlob)) {
modules.push(file.replace(/\.js$/, ''));
@@ -151,7 +151,7 @@ async function runTestsInBrowser(testModules, browserType) {
emitter.on('fail', (test, err) => {
if (err.stack) {
const regex = /(vs\/.*\.test)\.js/;
for (let line of String(err.stack).split('\n')) {
for (const line of String(err.stack).split('\n')) {
const match = regex.exec(line);
if (match) {
fails.push(match[1]);
@@ -255,7 +255,7 @@ testModules.then(async modules => {
}
// aftermath
for (let msg of messages) {
for (const msg of messages) {
if (msg) {
didFail = true;
console.log(msg);