Skip to content

Commit b0b23aa

Browse files
authored
Fixing typo in testcase (chakra-core#6723)
* Fixing typo in testcase * Update ContributionAgreement
1 parent 40c6f26 commit b0b23aa

File tree

2 files changed

+32
-30
lines changed

2 files changed

+32
-30
lines changed

Diff for: ContributionAgreement.md

+1
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ This agreement has been signed by:
4242
|Wenlu Wang| Kingwl|
4343
|Kevin Cadieux|kevcadieux|
4444
|Aidan Bickford| BickfordA|
45+
|Ryoichi Kaida| camcam-lemon|

Diff for: test/es6/superDotOSBug3930962.js

+31-30
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//-------------------------------------------------------------------------------------------------------
22
// Copyright (C) Microsoft. All rights reserved.
3+
// Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
34
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
45
//-------------------------------------------------------------------------------------------------------
56

@@ -150,12 +151,12 @@ var tests = [
150151
super();
151152
var super_arrow = () => {
152153
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");
154155
assert.areEqual(1,super[1].call(this), "confirm we can make index method call on class A's method inside a lambda");
155156
}
156157
super_arrow();
157158
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");
159160
assert.areEqual(2,super[2].call(this), "confirm we can make index method call on class A's method");
160161
}
161162
}
@@ -171,11 +172,11 @@ var tests = [
171172
constructor() {
172173
var super_arrow = () => {
173174
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");
175176
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");
177178
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");
179180
}
180181
super_arrow();
181182
}
@@ -192,11 +193,11 @@ var tests = [
192193
constructor() {
193194
var super_arrow = () => {
194195
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");
196197
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");
198199
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");
200201
}
201202
super_arrow();
202203
}
@@ -212,8 +213,8 @@ var tests = [
212213
constructor() {
213214
var super_arrow = () => {
214215
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");
217218
}
218219
super_arrow();
219220

@@ -230,8 +231,8 @@ var tests = [
230231
constructor() {
231232
var super_arrow = () => {
232233
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");
235236
}
236237
super_arrow();
237238

@@ -248,7 +249,7 @@ var tests = [
248249
constructor() {
249250
var super_arrow = () => {
250251
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");
252253
}
253254
super_arrow();
254255
}
@@ -263,7 +264,7 @@ var tests = [
263264
class B extends A {
264265
constructor() {
265266
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");
267268
}
268269
}
269270
var bar = new B();
@@ -277,7 +278,7 @@ var tests = [
277278
constructor() {
278279
var super_arrow = () => {
279280
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");
281282
}
282283
super_arrow();
283284
}
@@ -293,7 +294,7 @@ var tests = [
293294
constructor() {
294295
var super_arrow = () => {
295296
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");
297298
}
298299
super_arrow();
299300
}
@@ -309,11 +310,11 @@ var tests = [
309310
class B extends A {
310311
constructor() {
311312
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");
313314
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");
315316
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");
317318
}
318319
}
319320
var bar = new B();
@@ -327,11 +328,11 @@ var tests = [
327328
class B extends A {
328329
constructor() {
329330
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");
331332
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");
333334
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");
335336
}
336337
}
337338
var bar = new B();
@@ -344,8 +345,8 @@ var tests = [
344345
class B extends A {
345346
constructor() {
346347
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");
349350

350351
}
351352
}
@@ -359,8 +360,8 @@ var tests = [
359360
class B extends A {
360361
constructor() {
361362
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");
364365

365366
}
366367
}
@@ -374,7 +375,7 @@ var tests = [
374375
class B extends A {
375376
constructor() {
376377
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");
378379
}
379380
}
380381
var bar = new B();
@@ -387,7 +388,7 @@ var tests = [
387388
class B extends A {
388389
constructor() {
389390
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");
391392
}
392393
}
393394
var bar = new B();
@@ -400,7 +401,7 @@ var tests = [
400401
class B extends A {
401402
constructor() {
402403
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");
404405
}
405406
}
406407
var bar = new B();
@@ -413,7 +414,7 @@ var tests = [
413414
class B extends A {
414415
constructor() {
415416
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");
417418
}
418419
}
419420
var bar = new B();

0 commit comments

Comments
 (0)