Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update swc_ecma_transforms_proposal to v0.167.15 #160

Closed
tjjfvi opened this issue Oct 2, 2023 · 1 comment · Fixed by #161
Closed

update swc_ecma_transforms_proposal to v0.167.15 #160

tjjfvi opened this issue Oct 2, 2023 · 1 comment · Fixed by #161

Comments

@tjjfvi
Copy link

tjjfvi commented Oct 2, 2023

This version fixes swc-project/swc#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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants