If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

ES6-compatible let disallows variable redeclaration

RESOLVED WONTFIX

Status

Marketplace
Validation
P3
normal
RESOLVED WONTFIX
3 years ago
2 years ago

People

(Reporter: mat, Assigned: u489517)

Tracking

Points:
---

Details

(Whiteboard: [marketplace-transition])

(Reporter)

Description

3 years ago
The behaviour of the 'let' keyword has changed in Firefox 35: https://developer.mozilla.org/en-US/Firefox/Releases/35/Site_Compatibility#JavaScript

Bug 1001090 – Implement ES6 "temporal dead zone" for let and const

> The let statement implementation has been updated to support the "temporal dead zone"
> of the ECMAScript 6 spec, though the implementation is not yet fully ES6-compatible. 
> Starting with Firefox 35, redeclaring an existing variable in the same block scope 
> throws a TypeError, while referring a variable before the variable is declared raises
> a This change will mainly affect Open Web Apps for Firefox and Firefox OS, as well as
> Firefox extensions. See also the newsgroup announcement for details.

We can probably tweak the validator to throw a warning / error when it detects such uses.
Is this an issue for the validator? Does it check for scoping issues for variables?
Assignee: nobody → mstriemer
Priority: -- → P3

Updated

2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
Whiteboard: [marketplace-transition]
You need to log in before you can comment on or make changes to this bug.