Open garethj2 opened 4 months ago
Yeah, this is just unimplemented because we're waiting for v8 to support it ("Support in pure JavaScript is waiting on implementation in V8." https://deno.com/blog/v1.40#decorators).
Relevant issue in V8 bug tracker: https://issues.chromium.org/issues/42202709
In Deno, JavaScript decorators aren't supported. Obviously they're supported for TypeScript.
This is pretty annoying when one bundles a Deno project into one large JavaScript file to run.
The workaround is to rename the bundled files to
ts
instead ofjs
.Decorators should be supported in both TypeScript and JavaScript.