Closed Bug 1093527 Opened 11 years ago Closed 11 years ago

Ecmascript 6 set iteration not supported

Categories

(Firefox :: Untriaged, defect)

32 Branch
x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: angelo.borsotti, Unassigned)

Details

Attachments

(1 file)

Attached file tmpSet.html —
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0 Build ID: 20140923175406 Steps to reproduce: I used the set iteration in a javascript script. Open the attached file with firefox: nothing is displayed. Activate Firebug and reload the file: an error is displayed. Actual results: Nothing. Debugging it with Firebug, an error was displayed: missing ; after for-loop initializer Expected results: The iteration on the set visited its elements.
The mimetype you specified for the script is wrong. If you use application/javascript;version=1.8, it works fine: http://jsbin.com/zidacubafi/1/edit
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Ok, thanks. P.S. I have seen that it works fine also without application/javascript;version=1.8 removing "let": for (item of mySet).
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: