You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/04/05 20:53:11 UTC
[GitHub] [royale-compiler] yishayw opened a new pull request #144: Works on
given test case. Hope I didn't break anything.
yishayw opened a new pull request #144: Works on given test case. Hope I didn't break anything.
URL: https://github.com/apache/royale-compiler/pull/144
Reference #143
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-compiler] yishayw commented on issue #144: Works on given
test case. Hope I didn't break anything.
Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-compiler] yishayw commented on issue #144: Works on given
test case. Hope I didn't break anything.
Posted by GitBox <gi...@apache.org>.
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-609487231
The problem is that my code is in JSEmitter which descends from JSRoyaleEmitter which overrides JSGoogEmitter.emitClosureStart(). I'm not sure there's a clean way to reuse the latter function.
If you do think of something let me know. Need to sign off...
Thanks.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-compiler] greg-dove commented on issue #144: Works on given
test case. Hope I didn't break anything.
Posted by GitBox <gi...@apache.org>.
greg-dove 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-609989387
Sorry I did not find time last night to check that. I see what you mean about the inheritance levels. There is some code in JSEmitter which I added which likely needs to be added to an overridden method in JSRoyaleEmitter. I will try to look into that this coming weekend.
What you might consider is overriding 'emitAssignedValue' in JSRoyaleEmitter and try adding the check in there, make the changes if necessary, and call the super method otherwise.
You should also check it is not a static function you are assigning, and avoid doing anything special in that case, I think.
I will try to more time to look more tonight.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-compiler] yishayw commented on issue #144: Works on given
test case. Hope I didn't break anything.
Posted by GitBox <gi...@apache.org>.
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-612166955
This can be achieved in a more elegant way if the application source code is modified to make the function source explicit.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-compiler] greg-dove commented on issue #144: Works on given
test case. Hope I didn't break anything.
Posted by GitBox <gi...@apache.org>.
greg-dove 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-609485205
I just saw this review request yishay, I had already replied to the commit email with a couple of quick suggestions. I will try to look at this in more detail tonight my time.
Here's what I added via email:
-You might find a place in the code where there is something already that has 'needClosure' logic, but the logic that sets it to true does not yet include the specific case you are dealing with.
-Take a look at emitClosureStart and emitClosureEnd I think those will help out.
(The second one is likely not needed if the first one is a solution, but these are just clues to help you better understand the compiler code, not any recommendation about the way to do what you are specifically working to fix - I have not looked into it yet)
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-compiler] yishayw closed pull request #144: Works on given
test case. Hope I didn't break anything.
Posted by GitBox <gi...@apache.org>.
yishayw closed pull request #144: Works on given test case. Hope I didn't break anything.
URL: https://github.com/apache/royale-compiler/pull/144
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services