question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"var let" should be allowed in non-strict mode [$15]

See original GitHub issue

Repro:

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:closed
  • Created 8 years ago
  • Comments:25 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
RReversercommented, Mar 11, 2016

IIUC, this issue can be closed now.

0reactions
nzakascommented, Mar 14, 2016

Yup. @marijnh, once this is closed, you can claim the bounty on this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found