summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/testdata/bundle/decorators/ts_decorators.out12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/testdata/bundle/decorators/ts_decorators.out b/cli/tests/testdata/bundle/decorators/ts_decorators.out
index 2f503fdd0..e988aadd3 100644
--- a/cli/tests/testdata/bundle/decorators/ts_decorators.out
+++ b/cli/tests/testdata/bundle/decorators/ts_decorators.out
@@ -3,12 +3,12 @@
// deno-lint-ignore-file
// This code was bundled using `deno bundle` and it's not recommended to edit it manually
-var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
+function _ts_decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
+}
function a() {
console.log("a(): evaluated");
return (_target, _propertyKey, _descriptor)=>{
@@ -20,15 +20,15 @@ class B {
console.log("method");
}
}
-__decorate([
+_ts_decorate([
a()
], B.prototype, "method", null);
-var __decorate1 = this && this.__decorate || function(decorators, target, key, desc) {
+function _ts_decorate1(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
+}
function Decorator() {
return function(target, propertyKey, descriptor) {
const originalFn = descriptor.value;
@@ -41,7 +41,7 @@ function Decorator() {
class SomeClass {
async test() {}
}
-__decorate1([
+_ts_decorate1([
Decorator()
], SomeClass.prototype, "test", null);
new SomeClass().test();