https://codereview.chromium.org/1307223002/diff/40001/src/ast.h
File src/ast.h (right):
https://codereview.chromium.org/1307223002/diff/40001/src/ast.h#newcode1493
src/ast.h:1493: return boilerplate_properties_ == 0 &&
properties_->length() > 0;
I don't think the LHS of this expression is correct: it only works for
object literals whose first property has a computed name. See the way
the number_of_boilerplate_properties is accumulated in
ParseObjectLiteral(): it only stops counting up after it hits the first
computed name. I suspect test cases where the first property is
non-computed will keep failing with this patch.
https://codereview.chromium.org/1307223002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.