Skip to content

Commit 539c455

Browse files
committed
Rename to _superIndex to test conflict
Change-Id: I30af09343446126ba73ed40199ecc3f0ed515b3e
1 parent e58ffcf commit 539c455

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

tests/baselines/reference/asyncMethodWithSuperConflict_es6.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class B extends A {
1010
// async method with only call/get on 'super' does not require a binding
1111
async simple() {
1212
const _super = null;
13-
const _superProps = null;
13+
const _superIndex = null;
1414
// call with property access
1515
super.x();
1616
// call additional property.
@@ -29,7 +29,7 @@ class B extends A {
2929
// async method with assignment/destructuring on 'super' requires a binding
3030
async advanced() {
3131
const _super = null;
32-
const _superProps = null;
32+
const _superIndex = null;
3333
const f = () => {};
3434

3535
// call with property access
@@ -77,29 +77,29 @@ class A {
7777
class B extends A {
7878
// async method with only call/get on 'super' does not require a binding
7979
simple() {
80-
const _superIndex = name => super[name];
80+
const _superIndex_1 = name => super[name];
8181
const _super_1 = Object.create(null, {
8282
x: { get: () => super.x },
8383
y: { get: () => super.y }
8484
});
8585
return __awaiter(this, void 0, void 0, function* () {
8686
const _super = null;
87-
const _superProps = null;
87+
const _superIndex = null;
8888
// call with property access
8989
_super_1.x.call(this);
9090
// call additional property.
9191
_super_1.y.call(this);
9292
// call with element access
93-
_superIndex("x").call(this);
93+
_superIndex_1("x").call(this);
9494
// property access (read)
9595
const a = _super_1.x;
9696
// element access (read)
97-
const b = _superIndex("x");
97+
const b = _superIndex_1("x");
9898
});
9999
}
100100
// async method with assignment/destructuring on 'super' requires a binding
101101
advanced() {
102-
const _superIndex = (function (geti, seti) {
102+
const _superIndex_1 = (function (geti, seti) {
103103
const cache = Object.create(null);
104104
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
105105
})(name => super[name], (name, value) => super[name] = value);
@@ -108,24 +108,24 @@ class B extends A {
108108
});
109109
return __awaiter(this, void 0, void 0, function* () {
110110
const _super = null;
111-
const _superProps = null;
111+
const _superIndex = null;
112112
const f = () => { };
113113
// call with property access
114114
_super_1.x.call(this);
115115
// call with element access
116-
_superIndex("x").value.call(this);
116+
_superIndex_1("x").value.call(this);
117117
// property access (read)
118118
const a = _super_1.x;
119119
// element access (read)
120-
const b = _superIndex("x").value;
120+
const b = _superIndex_1("x").value;
121121
// property access (assign)
122122
_super_1.x = f;
123123
// element access (assign)
124-
_superIndex("x").value = f;
124+
_superIndex_1("x").value = f;
125125
// destructuring assign with property access
126126
({ f: _super_1.x } = { f });
127127
// destructuring assign with element access
128-
({ f: _superIndex("x").value } = { f });
128+
({ f: _superIndex_1("x").value } = { f });
129129
});
130130
}
131131
}

tests/baselines/reference/asyncMethodWithSuperConflict_es6.symbols

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class B extends A {
2121
const _super = null;
2222
>_super : Symbol(_super, Decl(asyncMethodWithSuperConflict_es6.ts, 10, 13))
2323

24-
const _superProps = null;
25-
>_superProps : Symbol(_superProps, Decl(asyncMethodWithSuperConflict_es6.ts, 11, 13))
24+
const _superIndex = null;
25+
>_superIndex : Symbol(_superIndex, Decl(asyncMethodWithSuperConflict_es6.ts, 11, 13))
2626

2727
// call with property access
2828
super.x();
@@ -62,8 +62,8 @@ class B extends A {
6262
const _super = null;
6363
>_super : Symbol(_super, Decl(asyncMethodWithSuperConflict_es6.ts, 29, 13))
6464

65-
const _superProps = null;
66-
>_superProps : Symbol(_superProps, Decl(asyncMethodWithSuperConflict_es6.ts, 30, 13))
65+
const _superIndex = null;
66+
>_superIndex : Symbol(_superIndex, Decl(asyncMethodWithSuperConflict_es6.ts, 30, 13))
6767

6868
const f = () => {};
6969
>f : Symbol(f, Decl(asyncMethodWithSuperConflict_es6.ts, 31, 13))

tests/baselines/reference/asyncMethodWithSuperConflict_es6.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class B extends A {
2222
>_super : any
2323
>null : null
2424

25-
const _superProps = null;
26-
>_superProps : any
25+
const _superIndex = null;
26+
>_superIndex : any
2727
>null : null
2828

2929
// call with property access
@@ -70,8 +70,8 @@ class B extends A {
7070
>_super : any
7171
>null : null
7272

73-
const _superProps = null;
74-
>_superProps : any
73+
const _superIndex = null;
74+
>_superIndex : any
7575
>null : null
7676

7777
const f = () => {};

tests/cases/conformance/async/es2017/asyncMethodWithSuperConflict_es6.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class B extends A {
1010
// async method with only call/get on 'super' does not require a binding
1111
async simple() {
1212
const _super = null;
13-
const _superProps = null;
13+
const _superIndex = null;
1414
// call with property access
1515
super.x();
1616
// call additional property.
@@ -29,7 +29,7 @@ class B extends A {
2929
// async method with assignment/destructuring on 'super' requires a binding
3030
async advanced() {
3131
const _super = null;
32-
const _superProps = null;
32+
const _superIndex = null;
3333
const f = () => {};
3434

3535
// call with property access

0 commit comments

Comments
 (0)