yishayw commented on issue #144: Works on given test case. Hope I didn't break 
anything.
URL: https://github.com/apache/royale-compiler/pull/144#issuecomment-609486718
 
 
   Hi,
   
   Changing to
                                                   emitClosureStart();
                                                   
emitAssignedValue(assignedNode);
                                                   MemberAccessExpressionNode 
maenode = (MemberAccessExpressionNode)assignedNode;
                                                   
emitClosureEnd(maenode.getLeftOperandNode(), definition);
   
   Results in
   
     org.apache.royale.utils.Language.as(c, MyButton).clickFunction = 
org.apache.royale.utils.Language.closure(this.parentApplication.buttonFunction, 
'Function');
   
   Which fails with
   
   TypeError: Object.defineProperty called on non-object
   Watch
   Call Stack
   org.apache.royale.utils.Language.closure
   Language.js:281
   MyBox.addElement
   MyBox.js:39
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to