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)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: jandem, Assigned: efaust)
Details
Attachments
(1 file)
1.40 KB,
patch
|
till
:
review+
|
Details | Diff | Splinter Review |
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)
Assignee | ||
Comment 1•11 years ago
|
||
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)
Assignee | ||
Comment 2•11 years ago
|
||
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.
Comment 3•11 years ago
|
||
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+
Assignee | ||
Comment 4•11 years ago
|
||
Comment 5•11 years ago
|
||
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
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Comment 7•11 years ago
|
||
(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.
Description
•