Skip to content

Commit 2e2559b

Browse files
author
Yui T
committed
Update tests baseline from merging with master
1 parent 15b05e6 commit 2e2559b

9 files changed

+10
-11
lines changed

tests/baselines/reference/computedPropertyNames29.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ var C = (function () {
1515
function C() {
1616
}
1717
C.prototype.bar = function () {
18-
var _this = this;
19-
(function () {
18+
(() => {
2019
var obj = {
21-
[_this.bar()]() {
20+
[this.bar()]() {
2221
} // needs capture
2322
};
2423
});

tests/baselines/reference/computedPropertyNames3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var C = (function () {
1616
}
1717
C.prototype[0 + 1] = function () {
1818
};
19-
C[function () {
19+
C[() => {
2020
}] = function () {
2121
};
2222
Object.defineProperty(C.prototype, delete id, {

tests/baselines/reference/computedPropertyNames30.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var C = (function (_super) {
3131
__extends(C, _super);
3232
function C() {
3333
_super.call(this);
34-
(function () {
34+
(() => {
3535
var obj = {
3636
// Ideally, we would capture this. But the reference is
3737
// illegal, and not capturing this is consistent with

tests/baselines/reference/computedPropertyNames31.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var C = (function (_super) {
3737
}
3838
C.prototype.foo = function () {
3939
var _this = this;
40-
(function () {
40+
(() => {
4141
var obj = {
4242
[_super.prototype.bar.call(_this)]() {
4343
} // needs capture

tests/baselines/reference/computedPropertyNamesContextualType1.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ var o = {
1414
["" + 0](y) {
1515
return y.length;
1616
},
17-
["" + 1]: function (y) { return y.length; }
17+
["" + 1]: y => { return y.length; }
1818
};

tests/baselines/reference/computedPropertyNamesContextualType2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ var o = {
1414
[+"foo"](y) {
1515
return y.length;
1616
},
17-
[+"bar"]: function (y) { return y.length; }
17+
[+"bar"]: y => { return y.length; }
1818
};

tests/baselines/reference/computedPropertyNamesContextualType3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ var o = {
1313
[+"foo"](y) {
1414
return y.length;
1515
},
16-
[+"bar"]: function (y) { return y.length; }
16+
[+"bar"]: y => { return y.length; }
1717
};

tests/baselines/reference/computedPropertyNamesContextualType6.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ foo({
1616
//// [computedPropertyNamesContextualType6.js]
1717
foo({
1818
p: "",
19-
0: function () {
19+
0: () => {
2020
},
2121
["hi" + "bye"]: true,
2222
[0 + 1]: 0,

tests/baselines/reference/computedPropertyNamesContextualType7.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ foo({
1616
//// [computedPropertyNamesContextualType7.js]
1717
foo({
1818
p: "",
19-
0: function () {
19+
0: () => {
2020
},
2121
["hi" + "bye"]: true,
2222
[0 + 1]: 0,

0 commit comments

Comments
 (0)