mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 20:44:53 -05:00
Update baselines (#7981)
This commit is contained in:
@@ -5,7 +5,7 @@ function* foo() {
|
||||
}
|
||||
|
||||
//// [YieldExpression3_es6.js]
|
||||
function foo() {
|
||||
function* foo() {
|
||||
yield;
|
||||
yield;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ function* foo() {
|
||||
}
|
||||
|
||||
//// [YieldExpression4_es6.js]
|
||||
function foo() {
|
||||
function* foo() {
|
||||
yield;
|
||||
yield;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ function* foo() {
|
||||
}
|
||||
|
||||
//// [YieldExpression5_es6.js]
|
||||
function foo() {
|
||||
function* foo() {
|
||||
yield* ;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ function* foo() {
|
||||
}
|
||||
|
||||
//// [YieldExpression6_es6.js]
|
||||
function foo() {
|
||||
function* foo() {
|
||||
yield* foo;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ function* foo() {
|
||||
}
|
||||
|
||||
//// [YieldExpression7_es6.js]
|
||||
function foo() {
|
||||
function* foo() {
|
||||
yield foo;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,6 @@ function* foo() {
|
||||
|
||||
//// [YieldExpression8_es6.js]
|
||||
yield(foo);
|
||||
function foo() {
|
||||
function* foo() {
|
||||
yield (foo);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ var v = function*() {
|
||||
}
|
||||
|
||||
//// [YieldExpression9_es6.js]
|
||||
var v = function () {
|
||||
var v = function* () {
|
||||
yield (foo);
|
||||
};
|
||||
|
||||
@@ -4,6 +4,6 @@ function *g() {
|
||||
}
|
||||
|
||||
//// [YieldStarExpression3_es6.js]
|
||||
function g() {
|
||||
function* g() {
|
||||
yield* ;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ function *g() {
|
||||
}
|
||||
|
||||
//// [YieldStarExpression4_es6.js]
|
||||
function g() {
|
||||
function* g() {
|
||||
yield* [];
|
||||
}
|
||||
|
||||
@@ -102,9 +102,10 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var _this = this;
|
||||
// Arrow function used in with statement
|
||||
with (window) {
|
||||
var p = function () { return this; };
|
||||
var p = function () { return _this; };
|
||||
}
|
||||
// Arrow function as argument to super call
|
||||
var Base = (function () {
|
||||
@@ -130,6 +131,7 @@ var arr; // Incorrect error here (bug 829597)
|
||||
// Arrow function as enum value
|
||||
var E;
|
||||
(function (E) {
|
||||
var _this = this;
|
||||
E[E["x"] = function () { return 4; }] = "x";
|
||||
E[E["y"] = (function () { return _this; }).length] = "y"; // error, can't use this in enum
|
||||
})(E || (E = {}));
|
||||
@@ -142,9 +144,10 @@ var M;
|
||||
// Repeat above for module members that are functions? (necessary to redo all of them?)
|
||||
var M2;
|
||||
(function (M2) {
|
||||
var _this = this;
|
||||
// Arrow function used in with statement
|
||||
with (window) {
|
||||
var p = function () { return this; };
|
||||
var p = function () { return _this; };
|
||||
}
|
||||
// Arrow function as argument to super call
|
||||
var Base = (function () {
|
||||
@@ -170,6 +173,7 @@ var M2;
|
||||
// Arrow function as enum value
|
||||
var E;
|
||||
(function (E) {
|
||||
var _this = this;
|
||||
E[E["x"] = function () { return 4; }] = "x";
|
||||
E[E["y"] = (function () { return _this; }).length] = "y";
|
||||
})(E || (E = {}));
|
||||
|
||||
@@ -54,8 +54,9 @@ var RegisteredUser = (function (_super) {
|
||||
};
|
||||
RegisteredUser.prototype.g = function () {
|
||||
function inner() {
|
||||
var _this = this;
|
||||
(function () {
|
||||
_super.sayHello.call(this);
|
||||
_super.sayHello.call(_this);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
export = { ["hi"]: "there" };
|
||||
|
||||
//// [exportEqualsUmd.js]
|
||||
(function (factory) {
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
define(dependencies, factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
return (_a = {}, _a["hi"] = "there", _a);
|
||||
var _a;
|
||||
|
||||
@@ -11,7 +11,8 @@ function x() {
|
||||
function x() {
|
||||
with ({}) {
|
||||
function f() {
|
||||
(function () { return this; });
|
||||
var _this = this;
|
||||
(function () { return _this; });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,14 +5,14 @@ run(1);
|
||||
|
||||
|
||||
//// [isolatedModulesPlainFile-UMD.js]
|
||||
(function (factory) {
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
define(dependencies, factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
run(1);
|
||||
});
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
export class Foo {}
|
||||
|
||||
//// [modulePrologueUmd.js]
|
||||
(function (factory) {
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
define(dependencies, factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
var Foo = (function () {
|
||||
function Foo() {
|
||||
|
||||
@@ -6,8 +6,9 @@ return this.edit(role)
|
||||
|
||||
|
||||
//// [multiLinePropertyAccessAndArrowFunctionIndent1.js]
|
||||
var _this = this;
|
||||
return this.edit(role)
|
||||
.then(function (role) {
|
||||
return this.roleService.add(role)
|
||||
return _this.roleService.add(role)
|
||||
.then(function (data) { return data.data; });
|
||||
});
|
||||
|
||||
@@ -16,6 +16,6 @@ var A = (function () {
|
||||
}());
|
||||
A = __decorate([
|
||||
decorator,
|
||||
__param(1, decorator),
|
||||
__metadata('design:paramtypes', [Number, String])
|
||||
__param(1, decorator),
|
||||
__metadata("design:paramtypes", [Number, String])
|
||||
], A);
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
export var x = 0;
|
||||
|
||||
//// [noImplicitUseStrict_system.js]
|
||||
System.register([], function(exports_1, context_1) {
|
||||
System.register([], function (exports_1, context_1) {
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
var x;
|
||||
return {
|
||||
setters:[],
|
||||
execute: function() {
|
||||
setters: [],
|
||||
execute: function () {
|
||||
exports_1("x", x = 0);
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
export var x = 0;
|
||||
|
||||
//// [noImplicitUseStrict_umd.js]
|
||||
(function (factory) {
|
||||
(function (dependencies, factory) {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === 'function' && define.amd) {
|
||||
define(["require", "exports"], factory);
|
||||
define(dependencies, factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
})(["require", "exports"], function (require, exports) {
|
||||
exports.x = 0;
|
||||
});
|
||||
|
||||
@@ -5,4 +5,5 @@ var v = {
|
||||
|
||||
//// [objectLiteralWithSemicolons4.js]
|
||||
var v = {
|
||||
a: };
|
||||
a:
|
||||
};
|
||||
|
||||
@@ -58,6 +58,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
function foo() {
|
||||
var _this = this;
|
||||
// super in a non class context
|
||||
var x = _super.;
|
||||
var y = function () { return _super.; };
|
||||
@@ -83,20 +84,28 @@ var RegisteredUser = (function (_super) {
|
||||
}
|
||||
// super call in a lambda in an inner function in a constructor
|
||||
function inner2() {
|
||||
var x = function () { return _super.sayHello.call(this); };
|
||||
var _this = this;
|
||||
var x = function () { return _super.sayHello.call(_this); };
|
||||
}
|
||||
// super call in a lambda in a function expression in a constructor
|
||||
(function () { return function () { return _super.; }; })();
|
||||
(function () {
|
||||
var _this = this;
|
||||
return function () { return _super.; };
|
||||
})();
|
||||
}
|
||||
RegisteredUser.prototype.sayHello = function () {
|
||||
// super call in a method
|
||||
_super.prototype.sayHello.call(this);
|
||||
// super call in a lambda in an inner function in a method
|
||||
function inner() {
|
||||
var x = function () { return _super.sayHello.call(this); };
|
||||
var _this = this;
|
||||
var x = function () { return _super.sayHello.call(_this); };
|
||||
}
|
||||
// super call in a lambda in a function expression in a constructor
|
||||
(function () { return function () { return _super.; }; })();
|
||||
(function () {
|
||||
var _this = this;
|
||||
return function () { return _super.; };
|
||||
})();
|
||||
};
|
||||
RegisteredUser.staticFunction = function () {
|
||||
var _this = this;
|
||||
|
||||
Reference in New Issue
Block a user