Skip to content

Commit a6ebfe5

Browse files
committed
missing compilation
1 parent cec52db commit a6ebfe5

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

build/lib/git.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ function getVersion(repo) {
1717
head = fs.readFileSync(headPath, 'utf8').trim();
1818
}
1919
catch (e) {
20-
return void 0;
20+
return undefined;
2121
}
2222
if (/^[0-9a-f]{40}$/i.test(head)) {
2323
return head;
2424
}
2525
const refMatch = /^ref: (.*)$/.exec(head);
2626
if (!refMatch) {
27-
return void 0;
27+
return undefined;
2828
}
2929
const ref = refMatch[1];
3030
const refPath = path.join(git, ref);
@@ -40,7 +40,7 @@ function getVersion(repo) {
4040
refsRaw = fs.readFileSync(packedRefsPath, 'utf8').trim();
4141
}
4242
catch (e) {
43-
return void 0;
43+
return undefined;
4444
}
4545
const refsRegex = /^([0-9a-f]{40})\s+(.+)$/gm;
4646
let refsMatch;

build/lib/standalone.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ function createESMSourcesAndResources2(options) {
119119
return path.join(OUT_RESOURCES_FOLDER, dest);
120120
};
121121
const allFiles = walkDirRecursive(SRC_FOLDER);
122-
for (let i = 0; i < allFiles.length; i++) {
123-
const file = allFiles[i];
122+
for (const file of allFiles) {
124123
if (options.ignores.indexOf(file.replace(/\\/g, '/')) >= 0) {
125124
continue;
126125
}

build/lib/treeshaking.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ var ShakeLevel;
1515
ShakeLevel[ShakeLevel["ClassMembers"] = 2] = "ClassMembers";
1616
})(ShakeLevel = exports.ShakeLevel || (exports.ShakeLevel = {}));
1717
function printDiagnostics(diagnostics) {
18-
for (let i = 0; i < diagnostics.length; i++) {
19-
const diag = diagnostics[i];
18+
for (const diag of diagnostics) {
2019
let result = '';
2120
if (diag.file) {
2221
result += `${diag.file.fileName}: `;
@@ -480,8 +479,7 @@ function generateResult(languageService, shakeLevel) {
480479
}
481480
else {
482481
let survivingImports = [];
483-
for (let i = 0; i < node.importClause.namedBindings.elements.length; i++) {
484-
const importNode = node.importClause.namedBindings.elements[i];
482+
for (const importNode of node.importClause.namedBindings.elements) {
485483
if (getColor(importNode) === 2 /* Black */) {
486484
survivingImports.push(importNode.getFullText(sourceFile));
487485
}

build/lib/tslint/noUnexternalizedStringsRule.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ class NoUnexternalizedStringsRuleWalker extends Lint.RuleWalker {
109109
this.recordKey(keyArg, this.messageIndex && callInfo ? callInfo.callExpression.arguments[this.messageIndex] : undefined);
110110
}
111111
else if (isObjectLiteral(keyArg)) {
112-
for (let i = 0; i < keyArg.properties.length; i++) {
113-
const property = keyArg.properties[i];
112+
for (const property of keyArg.properties) {
114113
if (isPropertyAssignment(property)) {
115114
const name = property.name.getText();
116115
if (name === 'key') {

0 commit comments

Comments
 (0)