Comment #5 on issue 4387 by zaxxon2...@gmail.com: Computed property names don't work in nested literals
https://code.google.com/p/v8/issues/detail?id=4387

I had some success with this. I didn't try "make check".


--- v8/src/ast.cc.orig  2015-08-24 13:18:35.598224718 -0400
+++ v8/src/ast.cc       2015-08-24 13:19:57.287046888 -0400
@@ -287,7 +287,8 @@

bool ObjectLiteral::IsBoilerplateProperty(ObjectLiteral::Property* property) {
   return property != NULL &&
-         property->kind() != ObjectLiteral::Property::PROTOTYPE;
+         property->kind() != ObjectLiteral::Property::PROTOTYPE &&
+         !property->is_computed_name();
 }



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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