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

Strict mode is not working in block scope. #14273

Open
vdata1 opened this issue Oct 1, 2024 · 0 comments
Open

Strict mode is not working in block scope. #14273

vdata1 opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@vdata1
Copy link

vdata1 commented Oct 1, 2024

What version of Bun is running?

1.1.30

What platform is your computer?

Darwin 23.6.0 x86_64 i386

What steps can reproduce the bug?

Hi,

I would like to report that Bun's strict mode is ineffective at block scope. It can be reproduced by running the following code example:

"use strict";
   
{
    function MyError() {}
    function MyError() {}
  }

Thanks

AH

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@vdata1 vdata1 added bug Something isn't working needs triage labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant