Closed Bug 1094265 Opened 11 years ago Closed 11 years ago

js1_8_5/extensions/reflect-parse.js jstest fails

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: jandem, Assigned: efaust)

Details

Attachments

(1 file)

js1_8_5/extensions/reflect-parse.js:189:10 Error: expected SyntaxError for "for (const x in foo);" Eric, is this from bug 611388? :)
Flags: needinfo?(efaustbmo)
It sure is! I thought (and checked repeatedly) that I had squelched this error. I spent a bunch of time on that test. I'll take a look today.
Flags: needinfo?(efaustbmo)
Attached patch FixSplinter Review
Ok, so I think rebasing burned me, here. What happened was we read one extra token, so never got const bindings here. That's got to be wrong all over.
Assignee: nobody → efaustbmo
Status: NEW → ASSIGNED
Attachment #8517692 - Flags: review?(till)
Comment on attachment 8517692 [details] [diff] [review] Fix Review of attachment 8517692 [details] [diff] [review]: ----------------------------------------------------------------- yes, this is a change we want :) ::: js/src/frontend/Parser.cpp @@ +4587,5 @@ > isForDecl = true; > blockObj = StaticBlockObject::create(context); > if (!blockObj) > return null(); > + pn1 = variables(constDecl ? PNK_CONST: PNK_LET, nullptr, blockObj, pre-existing nit: weird spacing in the ternary
Attachment #8517692 - Flags: review?(till) → review+
FYI... This patch along with the Add-on "Self-Destructing Cookies 0.4.7-pre2" causes Fx36 to crash. Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:36.0) Gecko/20100101 Firefox/36.0
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
(In reply to Gary [:streetwolf] from comment #5) > FYI... This patch along with the Add-on "Self-Destructing Cookies > 0.4.7-pre2" causes Fx36 to crash. File a new bug, please?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: