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

Add variable name to ReferenceError #56

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

Jarred-Sumner
Copy link
Collaborator

After:

1 | const fetch = await fetch("https://example.com");
                        ^
ReferenceError: Cannot access 'fetch' before initialization.
      at /Users/jarred/Code/bun/hey.js:1:21

Before:

1 | const fetch = await fetch("https://example.com");
                        ^
ReferenceError: Cannot access uninitialized variable.
      at /Users/jarred/Code/bun/hey.js:1:21

After:

```
ReferenceError: Cannot access 'Bar' before initialization.
```

Before:
```
ReferenceError: Cannot access uninitialized variable.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant