Summary: | [KJS] Error compiling named FunctionExpression in ObjectLiteral | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Thomas 'PointedEars' Lahn <kde> |
Component: | kjs | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Thomas 'PointedEars' Lahn
2006-03-13 00:54:58 UTC
Sorry, while reformatting the bug report I snipped one important production that shows the connection between an AssignmentExpression, a ConditionalExpression, and therefore the rest of productions, allowing a FunctionExpression to be a function argument: AssignmentExpression : ConditionalExpression LeftHandSideExpression AssignmentOperator AssignmentExpression SVN commit 656296 by porten: extend named function expression hack to object literal property values. See bug report #123529 and test added as rev 656295. BUG: 123529 M +1 -1 lexer.cpp --- branches/KDE/3.5/kdelibs/kjs/lexer.cpp #656295:656296 @@ -566,7 +566,7 @@ // There are lots of other uses, we really have to get this into the grammar if ( token == FUNCTION && ( lastToken == '=' || lastToken == ',' || lastToken == '(' || - lastToken == RETURN ) ) + lastToken == ':' || lastToken == RETURN ) ) convertNextIdentifier = true; if (token == CONTINUE || token == BREAK || |