Change 20100501-bargull-k2W by barg...@bargull02 on 2010-05-01 00:42:11
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix for flex array literal vs. meta data bug
New Features:
Bugs Fixed: LPP-8891 (SWF9: don't remove parenthesis around brackets or
add them automatically)
Technical Reviewer: ptw
QA Reviewer: henry
Doc Reviewer: (pending)
Documentation:
Release Notes:
Overview:
Details:
The ActionScript3 grammar does not follow the ECMAScript grammar for
MemberExpressions, namely the MemberExpression for property access must
not be an ArrayLiteral, cf. section 11.2 "Left-Hand-Side Expressions"
ECMAScript 3rd/5th edition. This restriction was added to ActionScript3
due to their MetaData support, e.g. [Embed(source="...")].
This change adds the required parenthesis around array literals for
property access.
Tests:
[].forEach(function(...rest){}) works in swf9+
Files:
M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9ParseTreePrinter.java
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100501-bargull-k2W.tar