1
1
//-------------------------------------------------------------------------------------------------------
2
2
// Copyright (C) Microsoft. All rights reserved.
3
+ // Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
3
4
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4
5
//-------------------------------------------------------------------------------------------------------
5
6
@@ -150,12 +151,12 @@ var tests = [
150
151
super ( ) ;
151
152
var super_arrow = ( ) => {
152
153
super . increment . call ( this ) ;
153
- assert . areEqual ( 2 , super . getCount . call ( this ) , "confirm we can make the the method call on class A's method inside a lambda" ) ;
154
+ assert . areEqual ( 2 , super . getCount . call ( this ) , "confirm we can make the method call on class A's method inside a lambda" ) ;
154
155
assert . areEqual ( 1 , super [ 1 ] . call ( this ) , "confirm we can make index method call on class A's method inside a lambda" ) ;
155
156
}
156
157
super_arrow ( ) ;
157
158
super . decrement . call ( this ) ;
158
- assert . areEqual ( 1 , super . getCount . call ( this ) , "confirm we can make the the method call on class A's method" ) ;
159
+ assert . areEqual ( 1 , super . getCount . call ( this ) , "confirm we can make the method call on class A's method" ) ;
159
160
assert . areEqual ( 2 , super [ 2 ] . call ( this ) , "confirm we can make index method call on class A's method" ) ;
160
161
}
161
162
}
@@ -171,11 +172,11 @@ var tests = [
171
172
constructor ( ) {
172
173
var super_arrow = ( ) => {
173
174
super ( ) ;
174
- assert . areEqual ( 1 , super . getCount ( ) , "confirm we can make the the method call on class A's method" ) ;
175
+ assert . areEqual ( 1 , super . getCount ( ) , "confirm we can make the method call on class A's method" ) ;
175
176
super . increment ( ) ;
176
- assert . areEqual ( 2 , super . getCount ( ) , "confirm we can make the the method call on class A's method" ) ;
177
+ assert . areEqual ( 2 , super . getCount ( ) , "confirm we can make the method call on class A's method" ) ;
177
178
super . decrement ( ) ;
178
- assert . areEqual ( 1 , super . getCount ( ) , "confirm we can make the the method call on class A's method" ) ;
179
+ assert . areEqual ( 1 , super . getCount ( ) , "confirm we can make the method call on class A's method" ) ;
179
180
}
180
181
super_arrow ( ) ;
181
182
}
@@ -192,11 +193,11 @@ var tests = [
192
193
constructor ( ) {
193
194
var super_arrow = ( ) => {
194
195
super ( ) ;
195
- assert . areEqual ( 1 , super [ "getCount" ] ( ) , "confirm we can make the the method call on class A's method" ) ;
196
+ assert . areEqual ( 1 , super [ "getCount" ] ( ) , "confirm we can make the method call on class A's method" ) ;
196
197
super [ "increment" ] ( ) ;
197
- assert . areEqual ( 2 , super [ "getCount" ] ( ) , "confirm we can make the the method call on class A's method" ) ;
198
+ assert . areEqual ( 2 , super [ "getCount" ] ( ) , "confirm we can make the method call on class A's method" ) ;
198
199
super [ "decrement" ] ( ) ;
199
- assert . areEqual ( 1 , super [ "getCount" ] ( ) , "confirm we can make the the method call on class A's method" ) ;
200
+ assert . areEqual ( 1 , super [ "getCount" ] ( ) , "confirm we can make the method call on class A's method" ) ;
200
201
}
201
202
super_arrow ( ) ;
202
203
}
@@ -212,8 +213,8 @@ var tests = [
212
213
constructor ( ) {
213
214
var super_arrow = ( ) => {
214
215
super ( ) ;
215
- assert . areEqual ( 1.1 , super [ 1.1 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
216
- assert . areEqual ( 2.2 , super [ 2.2 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
216
+ assert . areEqual ( 1.1 , super [ 1.1 ] ( ) , "confirm we can make the method call on class A's method" ) ;
217
+ assert . areEqual ( 2.2 , super [ 2.2 ] ( ) , "confirm we can make the method call on class A's method" ) ;
217
218
}
218
219
super_arrow ( ) ;
219
220
@@ -230,8 +231,8 @@ var tests = [
230
231
constructor ( ) {
231
232
var super_arrow = ( ) => {
232
233
super ( ) ;
233
- assert . areEqual ( 1 , super [ 1 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
234
- assert . areEqual ( 2 , super [ 2 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
234
+ assert . areEqual ( 1 , super [ 1 ] ( ) , "confirm we can make the method call on class A's method" ) ;
235
+ assert . areEqual ( 2 , super [ 2 ] ( ) , "confirm we can make the method call on class A's method" ) ;
235
236
}
236
237
super_arrow ( ) ;
237
238
@@ -248,7 +249,7 @@ var tests = [
248
249
constructor ( ) {
249
250
var super_arrow = ( ) => {
250
251
super ( ) ;
251
- assert . areEqual ( 2.1 , super [ 2.1 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
252
+ assert . areEqual ( 2.1 , super [ 2.1 ] ( ) , "confirm we can make the method call on class A's method" ) ;
252
253
}
253
254
super_arrow ( ) ;
254
255
}
@@ -263,7 +264,7 @@ var tests = [
263
264
class B extends A {
264
265
constructor ( ) {
265
266
super ( ) ;
266
- assert . areEqual ( 4 , super [ 4 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
267
+ assert . areEqual ( 4 , super [ 4 ] ( ) , "confirm we can make the method call on class A's method" ) ;
267
268
}
268
269
}
269
270
var bar = new B ( ) ;
@@ -277,7 +278,7 @@ var tests = [
277
278
constructor ( ) {
278
279
var super_arrow = ( ) => {
279
280
super ( ) ;
280
- assert . areEqual ( "foo1" , super [ "foo1" ] ( ) , "confirm we can make the the method call on class A's method" ) ;
281
+ assert . areEqual ( "foo1" , super [ "foo1" ] ( ) , "confirm we can make the method call on class A's method" ) ;
281
282
}
282
283
super_arrow ( ) ;
283
284
}
@@ -293,7 +294,7 @@ var tests = [
293
294
constructor ( ) {
294
295
var super_arrow = ( ) => {
295
296
super ( ) ;
296
- assert . areEqual ( "bart" , super [ sym1 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
297
+ assert . areEqual ( "bart" , super [ sym1 ] ( ) , "confirm we can make the method call on class A's method" ) ;
297
298
}
298
299
super_arrow ( ) ;
299
300
}
@@ -309,11 +310,11 @@ var tests = [
309
310
class B extends A {
310
311
constructor ( ) {
311
312
super ( ) ;
312
- assert . areEqual ( 1 , super . getCount ( ) , "confirm we can make the the method call on class A's method" ) ;
313
+ assert . areEqual ( 1 , super . getCount ( ) , "confirm we can make the method call on class A's method" ) ;
313
314
super . increment ( ) ;
314
- assert . areEqual ( 2 , super . getCount ( ) , "confirm we can make the the method call on class A's method" ) ;
315
+ assert . areEqual ( 2 , super . getCount ( ) , "confirm we can make the method call on class A's method" ) ;
315
316
super . decrement ( ) ;
316
- assert . areEqual ( 1 , super . getCount ( ) , "confirm we can make the the method call on class A's method" ) ;
317
+ assert . areEqual ( 1 , super . getCount ( ) , "confirm we can make the method call on class A's method" ) ;
317
318
}
318
319
}
319
320
var bar = new B ( ) ;
@@ -327,11 +328,11 @@ var tests = [
327
328
class B extends A {
328
329
constructor ( ) {
329
330
super ( ) ;
330
- assert . areEqual ( 1 , super [ "getCount" ] ( ) , "confirm we can make the the method call on class A's method" ) ;
331
+ assert . areEqual ( 1 , super [ "getCount" ] ( ) , "confirm we can make the method call on class A's method" ) ;
331
332
super [ "increment" ] ( ) ;
332
- assert . areEqual ( 2 , super [ "getCount" ] ( ) , "confirm we can make the the method call on class A's method" ) ;
333
+ assert . areEqual ( 2 , super [ "getCount" ] ( ) , "confirm we can make the method call on class A's method" ) ;
333
334
super [ "decrement" ] ( ) ;
334
- assert . areEqual ( 1 , super [ "getCount" ] ( ) , "confirm we can make the the method call on class A's method" ) ;
335
+ assert . areEqual ( 1 , super [ "getCount" ] ( ) , "confirm we can make the method call on class A's method" ) ;
335
336
}
336
337
}
337
338
var bar = new B ( ) ;
@@ -344,8 +345,8 @@ var tests = [
344
345
class B extends A {
345
346
constructor ( ) {
346
347
super ( ) ;
347
- assert . areEqual ( 1.1 , super [ 1.1 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
348
- assert . areEqual ( 2.2 , super [ 2.2 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
348
+ assert . areEqual ( 1.1 , super [ 1.1 ] ( ) , "confirm we can make the method call on class A's method" ) ;
349
+ assert . areEqual ( 2.2 , super [ 2.2 ] ( ) , "confirm we can make the method call on class A's method" ) ;
349
350
350
351
}
351
352
}
@@ -359,8 +360,8 @@ var tests = [
359
360
class B extends A {
360
361
constructor ( ) {
361
362
super ( ) ;
362
- assert . areEqual ( 1 , super [ 1 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
363
- assert . areEqual ( 2 , super [ 2 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
363
+ assert . areEqual ( 1 , super [ 1 ] ( ) , "confirm we can make the method call on class A's method" ) ;
364
+ assert . areEqual ( 2 , super [ 2 ] ( ) , "confirm we can make the method call on class A's method" ) ;
364
365
365
366
}
366
367
}
@@ -374,7 +375,7 @@ var tests = [
374
375
class B extends A {
375
376
constructor ( ) {
376
377
super ( ) ;
377
- assert . areEqual ( 2.1 , super [ 2.1 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
378
+ assert . areEqual ( 2.1 , super [ 2.1 ] ( ) , "confirm we can make the method call on class A's method" ) ;
378
379
}
379
380
}
380
381
var bar = new B ( ) ;
@@ -387,7 +388,7 @@ var tests = [
387
388
class B extends A {
388
389
constructor ( ) {
389
390
super ( ) ;
390
- assert . areEqual ( 4 , super [ 4 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
391
+ assert . areEqual ( 4 , super [ 4 ] ( ) , "confirm we can make the method call on class A's method" ) ;
391
392
}
392
393
}
393
394
var bar = new B ( ) ;
@@ -400,7 +401,7 @@ var tests = [
400
401
class B extends A {
401
402
constructor ( ) {
402
403
super ( ) ;
403
- assert . areEqual ( "foo1" , super [ "foo1" ] ( ) , "confirm we can make the the method call on class A's method" ) ;
404
+ assert . areEqual ( "foo1" , super [ "foo1" ] ( ) , "confirm we can make the method call on class A's method" ) ;
404
405
}
405
406
}
406
407
var bar = new B ( ) ;
@@ -413,7 +414,7 @@ var tests = [
413
414
class B extends A {
414
415
constructor ( ) {
415
416
super ( ) ;
416
- assert . areEqual ( "bart" , super [ sym1 ] ( ) , "confirm we can make the the method call on class A's method" ) ;
417
+ assert . areEqual ( "bart" , super [ sym1 ] ( ) , "confirm we can make the method call on class A's method" ) ;
417
418
}
418
419
}
419
420
var bar = new B ( ) ;
0 commit comments