Skip to content

Commit a941499

Browse files
committed
Update variable declarations according to ES6
1 parent 9c36c08 commit a941499

File tree

3 files changed

+87
-87
lines changed

3 files changed

+87
-87
lines changed

lib/BasicEvaluatedExpression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class BasicEvaluatedExpression {
6666
else if(this.isWrapped()) return this.prefix && this.prefix.asBool() || this.postfix && this.postfix.asBool() ? true : undefined;
6767
else if(this.isTemplateString()) {
6868
if(this.quasis.length === 1) return this.quasis[0].asBool();
69-
for(var i = 0; i < this.quasis.length; i++) {
69+
for(let i = 0; i < this.quasis.length; i++) {
7070
if(this.quasis[i].asBool()) return true;
7171
}
7272
// can't tell if string will be empty without executing

lib/Chunk.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class Chunk {
9696
}
9797

9898
removeModule(module) {
99-
var idx = this.modules.indexOf(module);
99+
const idx = this.modules.indexOf(module);
100100
if(idx >= 0) {
101101
this.modules.splice(idx, 1);
102102
module.removeChunk(this);
@@ -106,7 +106,7 @@ class Chunk {
106106
}
107107

108108
removeChunk(chunk) {
109-
var idx = this.chunks.indexOf(chunk);
109+
const idx = this.chunks.indexOf(chunk);
110110
if(idx >= 0) {
111111
this.chunks.splice(idx, 1);
112112
chunk.removeParent(this);
@@ -116,7 +116,7 @@ class Chunk {
116116
}
117117

118118
removeParent(chunk) {
119-
var idx = this.parents.indexOf(chunk);
119+
const idx = this.parents.indexOf(chunk);
120120
if(idx >= 0) {
121121
this.parents.splice(idx, 1);
122122
chunk.removeChunk(this);

0 commit comments

Comments
 (0)