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;
On 2015/08/24 18:14:29, adamk wrote:
On 2015/08/24 18:00:53, adamk wrote:
> 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.

Hmm, local testing suggests I'm wrong about this failing, so I'm not
totally
sure what's going on.

Sorry for the noise, I've confirmed that this is exactly the behavior
(forgot to negate the is_simple check so everything was getting marked
non-simple).

https://codereview.chromium.org/1307223002/

--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to