@@ -6094,12 +6094,12 @@ exports.classes = function (test) {
6094
6094
var run = TestRun ( test )
6095
6095
. addError ( cdecl + 4 , 15 , "Expected an identifier and instead saw 'package' (a reserved word)." )
6096
6096
. addError ( cexpr + 4 , 15 , "Expected an identifier and instead saw 'package' (a reserved word)." )
6097
- . addError ( cdeclAssn + 4 , 21 , "Reassignment of 'Foo15', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6098
- . addError ( cdeclAssn + 7 , 21 , "Reassignment of 'Foo18', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6099
- . addError ( cdeclAssn + 7 , 43 , "Reassignment of 'Foo17', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6100
- . addError ( cexprAssn + 4 , 27 , "Reassignment of 'Foo15', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6101
- . addError ( cexprAssn + 7 , 27 , "Reassignment of 'Foo18', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6102
- . addError ( cexprAssn + 7 , 49 , "Reassignment of 'Foo17', which is is a class. Use 'var' or 'let' to declare bindings that may change." ) ;
6097
+ . addError ( cdeclAssn + 4 , 21 , "Reassignment of 'Foo15', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6098
+ . addError ( cdeclAssn + 7 , 21 , "Reassignment of 'Foo18', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6099
+ . addError ( cdeclAssn + 7 , 43 , "Reassignment of 'Foo17', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6100
+ . addError ( cexprAssn + 4 , 27 , "Reassignment of 'Foo15', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6101
+ . addError ( cexprAssn + 7 , 27 , "Reassignment of 'Foo18', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6102
+ . addError ( cexprAssn + 7 , 49 , "Reassignment of 'Foo17', which is a class. Use 'var' or 'let' to declare bindings that may change." ) ;
6103
6103
6104
6104
run . test ( code , { esnext : true } ) ;
6105
6105
run . test ( code , { moz : true } ) ;
@@ -6271,12 +6271,12 @@ exports.classExpression = function (test) {
6271
6271
] ;
6272
6272
6273
6273
TestRun ( test )
6274
- . addError ( 2 , 19 , "Reassignment of 'MyClass', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6275
- . addError ( 3 , 14 , "Reassignment of 'MyClass', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6276
- . addError ( 4 , 21 , "Reassignment of 'MyClass', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6277
- . addError ( 5 , 20 , "Reassignment of 'MyClass', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6278
- . addError ( 6 , 20 , "Reassignment of 'MyClass', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6279
- . addError ( 7 , 15 , "Reassignment of 'MyClass', which is is a class. Use 'var' or 'let' to declare bindings that may change." )
6274
+ . addError ( 2 , 19 , "Reassignment of 'MyClass', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6275
+ . addError ( 3 , 14 , "Reassignment of 'MyClass', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6276
+ . addError ( 4 , 21 , "Reassignment of 'MyClass', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6277
+ . addError ( 5 , 20 , "Reassignment of 'MyClass', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6278
+ . addError ( 6 , 20 , "Reassignment of 'MyClass', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6279
+ . addError ( 7 , 15 , "Reassignment of 'MyClass', which is a class. Use 'var' or 'let' to declare bindings that may change." )
6280
6280
. addError ( 9 , 6 , "'MyClass' is not defined." )
6281
6281
. test ( code , { esnext : true , undef : true } ) ;
6282
6282
@@ -6481,12 +6481,12 @@ exports.functionReassignment = function (test) {
6481
6481
] ;
6482
6482
6483
6483
TestRun ( test )
6484
- . addError ( 2 , 1 , "Reassignment of 'f', which is is a function. Use 'var' or 'let' to declare bindings that may change." )
6485
- . addError ( 3 , 1 , "Reassignment of 'f', which is is a function. Use 'var' or 'let' to declare bindings that may change." )
6486
- . addError ( 5 , 3 , "Reassignment of 'g', which is is a function. Use 'var' or 'let' to declare bindings that may change." )
6487
- . addError ( 6 , 3 , "Reassignment of 'g', which is is a function. Use 'var' or 'let' to declare bindings that may change." )
6488
- . addError ( 9 , 3 , "Reassignment of 'h', which is is a function. Use 'var' or 'let' to declare bindings that may change." )
6489
- . addError ( 10 , 3 , "Reassignment of 'h', which is is a function. Use 'var' or 'let' to declare bindings that may change." )
6484
+ . addError ( 2 , 1 , "Reassignment of 'f', which is a function. Use 'var' or 'let' to declare bindings that may change." )
6485
+ . addError ( 3 , 1 , "Reassignment of 'f', which is a function. Use 'var' or 'let' to declare bindings that may change." )
6486
+ . addError ( 5 , 3 , "Reassignment of 'g', which is a function. Use 'var' or 'let' to declare bindings that may change." )
6487
+ . addError ( 6 , 3 , "Reassignment of 'g', which is a function. Use 'var' or 'let' to declare bindings that may change." )
6488
+ . addError ( 9 , 3 , "Reassignment of 'h', which is a function. Use 'var' or 'let' to declare bindings that may change." )
6489
+ . addError ( 10 , 3 , "Reassignment of 'h', which is a function. Use 'var' or 'let' to declare bindings that may change." )
6490
6490
. test ( src ) ;
6491
6491
6492
6492
test . done ( ) ;
0 commit comments