From 272e9b82ebddaa33cbc01cc8b1efd8a36ec3c645 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 2 Nov 2020 22:33:43 +1100 Subject: fix(cli): inject helpers when transpiling via swc (#8221) Fixes #8212 --- cli/tests/no_check_decorators.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cli/tests/no_check_decorators.ts (limited to 'cli/tests/no_check_decorators.ts') diff --git a/cli/tests/no_check_decorators.ts b/cli/tests/no_check_decorators.ts new file mode 100644 index 000000000..d9a3747b9 --- /dev/null +++ b/cli/tests/no_check_decorators.ts @@ -0,0 +1,21 @@ +/* eslint-disable */ +function a() { + console.log("a(): evaluated"); + return ( + _target: any, + _propertyKey: string, + _descriptor: PropertyDescriptor, + ) => { + console.log("a(): called"); + }; +} + +class B { + @a() + method() { + console.log("method"); + } +} + +const b = new B(); +b.method(); -- cgit v1.2.3