mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update tests baseline from merging with master
This commit is contained in:
@@ -15,10 +15,9 @@ var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
C.prototype.bar = function () {
|
||||
var _this = this;
|
||||
(function () {
|
||||
(() => {
|
||||
var obj = {
|
||||
[_this.bar()]() {
|
||||
[this.bar()]() {
|
||||
} // needs capture
|
||||
};
|
||||
});
|
||||
|
||||
@@ -16,7 +16,7 @@ var C = (function () {
|
||||
}
|
||||
C.prototype[0 + 1] = function () {
|
||||
};
|
||||
C[function () {
|
||||
C[() => {
|
||||
}] = function () {
|
||||
};
|
||||
Object.defineProperty(C.prototype, delete id, {
|
||||
|
||||
@@ -31,7 +31,7 @@ var C = (function (_super) {
|
||||
__extends(C, _super);
|
||||
function C() {
|
||||
_super.call(this);
|
||||
(function () {
|
||||
(() => {
|
||||
var obj = {
|
||||
// Ideally, we would capture this. But the reference is
|
||||
// illegal, and not capturing this is consistent with
|
||||
|
||||
@@ -37,7 +37,7 @@ var C = (function (_super) {
|
||||
}
|
||||
C.prototype.foo = function () {
|
||||
var _this = this;
|
||||
(function () {
|
||||
(() => {
|
||||
var obj = {
|
||||
[_super.prototype.bar.call(_this)]() {
|
||||
} // needs capture
|
||||
|
||||
@@ -14,5 +14,5 @@ var o = {
|
||||
["" + 0](y) {
|
||||
return y.length;
|
||||
},
|
||||
["" + 1]: function (y) { return y.length; }
|
||||
["" + 1]: y => { return y.length; }
|
||||
};
|
||||
|
||||
@@ -14,5 +14,5 @@ var o = {
|
||||
[+"foo"](y) {
|
||||
return y.length;
|
||||
},
|
||||
[+"bar"]: function (y) { return y.length; }
|
||||
[+"bar"]: y => { return y.length; }
|
||||
};
|
||||
|
||||
@@ -13,5 +13,5 @@ var o = {
|
||||
[+"foo"](y) {
|
||||
return y.length;
|
||||
},
|
||||
[+"bar"]: function (y) { return y.length; }
|
||||
[+"bar"]: y => { return y.length; }
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ foo({
|
||||
//// [computedPropertyNamesContextualType6.js]
|
||||
foo({
|
||||
p: "",
|
||||
0: function () {
|
||||
0: () => {
|
||||
},
|
||||
["hi" + "bye"]: true,
|
||||
[0 + 1]: 0,
|
||||
|
||||
@@ -16,7 +16,7 @@ foo({
|
||||
//// [computedPropertyNamesContextualType7.js]
|
||||
foo({
|
||||
p: "",
|
||||
0: function () {
|
||||
0: () => {
|
||||
},
|
||||
["hi" + "bye"]: true,
|
||||
[0 + 1]: 0,
|
||||
|
||||
Reference in New Issue
Block a user