Updated baselines

This commit is contained in:
Ron Buckton 2015-04-06 11:13:02 -07:00
parent 1a1813363e
commit 1bab2339a3
5 changed files with 43 additions and 60 deletions

View file

@ -2,25 +2,21 @@
var v = @decorate class C { static p = 1 }; var v = @decorate class C { static p = 1 };
//// [classExpressionWithDecorator1.js] //// [classExpressionWithDecorator1.js]
var __decorate = this.__decorate || function (decorators, target, key, value) { var __decorate = this.__decorate || (typeof Reflect === "object" && Reflect.decorate) || function (decorators, target, key, desc) {
var kind = typeof (arguments.length == 2 ? value = target : value); switch (arguments.length) {
for (var i = decorators.length - 1; i >= 0; --i) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
var decorator = decorators[i]; case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
switch (kind) { case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
case "function": value = decorator(value) || value; break;
case "number": decorator(target, key, value); break;
case "undefined": decorator(target, key); break;
case "object": value = decorator(target, key, value) || value; break;
}
} }
return value;
}; };
var v = ; var v = ;
var C = (function () { var C = (function () {
function C() { function C() {
} }
C.p = 1; C.p = 1;
C = __decorate([decorate], C); C = __decorate([
decorate
], C);
return C; return C;
})(); })();
; ;

View file

@ -6,18 +6,12 @@ class C {
} }
//// [decoratorOnClassAccessor3.js] //// [decoratorOnClassAccessor3.js]
var __decorate = this.__decorate || function (decorators, target, key, value) { var __decorate = this.__decorate || (typeof Reflect === "object" && Reflect.decorate) || function (decorators, target, key, desc) {
var kind = typeof (arguments.length == 2 ? value = target : value); switch (arguments.length) {
for (var i = decorators.length - 1; i >= 0; --i) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
var decorator = decorators[i]; case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
switch (kind) { case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
case "function": value = decorator(value) || value; break;
case "number": decorator(target, key, value); break;
case "undefined": decorator(target, key); break;
case "object": value = decorator(target, key, value) || value; break;
}
} }
return value;
}; };
var C = (function () { var C = (function () {
function C() { function C() {
@ -27,6 +21,9 @@ var C = (function () {
enumerable: true, enumerable: true,
configurable: true configurable: true
}); });
Object.defineProperty(C.prototype, "accessor", __decorate([dec], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor"))); Object.defineProperty(C.prototype, "accessor",
__decorate([
dec
], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor")));
return C; return C;
})(); })();

View file

@ -6,18 +6,12 @@ class C {
} }
//// [decoratorOnClassAccessor6.js] //// [decoratorOnClassAccessor6.js]
var __decorate = this.__decorate || function (decorators, target, key, value) { var __decorate = this.__decorate || (typeof Reflect === "object" && Reflect.decorate) || function (decorators, target, key, desc) {
var kind = typeof (arguments.length == 2 ? value = target : value); switch (arguments.length) {
for (var i = decorators.length - 1; i >= 0; --i) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
var decorator = decorators[i]; case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
switch (kind) { case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
case "function": value = decorator(value) || value; break;
case "number": decorator(target, key, value); break;
case "undefined": decorator(target, key); break;
case "object": value = decorator(target, key, value) || value; break;
}
} }
return value;
}; };
var C = (function () { var C = (function () {
function C() { function C() {
@ -27,6 +21,9 @@ var C = (function () {
enumerable: true, enumerable: true,
configurable: true configurable: true
}); });
Object.defineProperty(C.prototype, "accessor", __decorate([dec], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor"))); Object.defineProperty(C.prototype, "accessor",
__decorate([
dec
], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor")));
return C; return C;
})(); })();

View file

@ -6,23 +6,20 @@ class C {
} }
//// [decoratorOnClassMethod3.js] //// [decoratorOnClassMethod3.js]
var __decorate = this.__decorate || function (decorators, target, key, value) { var __decorate = this.__decorate || (typeof Reflect === "object" && Reflect.decorate) || function (decorators, target, key, desc) {
var kind = typeof (arguments.length == 2 ? value = target : value); switch (arguments.length) {
for (var i = decorators.length - 1; i >= 0; --i) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
var decorator = decorators[i]; case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
switch (kind) { case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
case "function": value = decorator(value) || value; break;
case "number": decorator(target, key, value); break;
case "undefined": decorator(target, key); break;
case "object": value = decorator(target, key, value) || value; break;
}
} }
return value;
}; };
var C = (function () { var C = (function () {
function C() { function C() {
} }
C.prototype.method = function () { }; C.prototype.method = function () { };
Object.defineProperty(C.prototype, "method", __decorate([dec], C.prototype, "method", Object.getOwnPropertyDescriptor(C.prototype, "method"))); Object.defineProperty(C.prototype, "method",
__decorate([
dec
], C.prototype, "method", Object.getOwnPropertyDescriptor(C.prototype, "method")));
return C; return C;
})(); })();

View file

@ -6,22 +6,18 @@ class C {
} }
//// [decoratorOnClassProperty3.js] //// [decoratorOnClassProperty3.js]
var __decorate = this.__decorate || function (decorators, target, key, value) { var __decorate = this.__decorate || (typeof Reflect === "object" && Reflect.decorate) || function (decorators, target, key, desc) {
var kind = typeof (arguments.length == 2 ? value = target : value); switch (arguments.length) {
for (var i = decorators.length - 1; i >= 0; --i) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
var decorator = decorators[i]; case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
switch (kind) { case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
case "function": value = decorator(value) || value; break;
case "number": decorator(target, key, value); break;
case "undefined": decorator(target, key); break;
case "object": value = decorator(target, key, value) || value; break;
}
} }
return value;
}; };
var C = (function () { var C = (function () {
function C() { function C() {
} }
__decorate([dec], C.prototype, "prop"); __decorate([
dec
], C.prototype, "prop");
return C; return C;
})(); })();