denoland / deno_ast

Source text parsing, lexing, and AST related functionality for Deno
https://crates.io/crates/deno_ast
MIT License
148 stars 45 forks source link

update `swc_ecma_transforms_proposal` to `v0.167.15` #160

Closed tjjfvi closed 11 months ago

tjjfvi commented 11 months ago

This version fixes https://github.com/swc-project/swc/issues/8020, which currently causes incorrect ReferenceErrors in Deno:

// foo.ts

using foo = null

const bar = 1

console.log(baz()) // should log `1`

function baz() {
  return bar
}
$ deno run foo.ts
error: Uncaught ReferenceError: bar is not defined
  return bar
  ^
    at baz (file://.../foo.ts:8:3)
    at file://.../foo.ts:5:13
dsherret commented 11 months ago

I'm going to do it tomorrow probably. There were a bunch of other fixes that have landed now.