"var let" should be allowed in non-strict mode [$15]
See original GitHub issueRepro:
var let = 10;
See https://github.com/jquery/esprima/issues/1048
<bountysource-plugin>
There is a $15 open bounty on this issue. Add to the bounty at Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 8 years ago
- Comments:25 (18 by maintainers)
Top Results From Across the Web
Strict mode - JavaScript - MDN Web Docs
JavaScript's strict mode is a way to opt in to a restricted variant of JavaScript, thereby implicitly opting-out of "sloppy mode".
Read more >var let is ok but let let isn't? - Stack Overflow
Variables have never been able to be named const , but there was no such restriction with let . If it had been...
Read more >let and strict mode - ESDiscuss.org
This is valid under ES5 non-strict via ASI: var let = "123"; let x = "abc";. So with 1JS in mind, it would...
Read more >Strict mode
JavaScript's strict mode, introduced in ECMAScript 5, is a way to opt in to a restricted variant of JavaScript, thereby implicitly ...
Read more >JS Basics: Understanding 'strict mode'. - DEV Community
Strict mode changes otherwise accepted bad syntax into real errors. It will ... In non-strict mode, this would have led to a new...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
IIUC, this issue can be closed now.
Yup. @marijnh, once this is closed, you can claim the bounty on this issue.