From cf9fb18494d67526eb910cad68f8b364432fe584 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 21 Apr 2023 17:16:25 -0400 Subject: feat: upgrade deno_ast to 0.26 (#18795) Closes #18792 --- cli/tests/testdata/bundle/decorators/ts_decorators.out | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cli/tests') 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(); -- cgit v1.2.3