-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix named function expression creation. #2634
Fix named function expression creation. #2634
Conversation
0575134
to
262c9f2
Compare
I think this patch is ready for review. |
Maybe you could add a test case to check if it works as expected? |
Good point. I forgot it. |
262c9f2
to
b3d9b55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general. +1 to @rerobika 's suggestions to extend the test case.
Create a local lexical environment with the name of the function. While this is not too memory efficient, some corner cases requires its existence. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
b3d9b55
to
2f92b8f
Compare
Thank you for the review. Tests added, even a new one as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Revert "jerry: ref to function self should not create new object (#368)" * jerry: change literal status flags to enum Picked from jerryscript-project/jerryscript#2474 * jerry: fix named function expression creation picked from jerryscript-project/jerryscript#2634 * Include test sets
* Revert "jerry: ref to function self should not create new object (#368)" * jerry: change literal status flags to enum Picked from jerryscript-project/jerryscript#2474 * jerry: fix named function expression creation picked from jerryscript-project/jerryscript#2634 * Include test sets
* Revert "jerry: ref to function self should not create new object (#368)" * jerry: change literal status flags to enum Picked from jerryscript-project/jerryscript#2474 * jerry: fix named function expression creation picked from jerryscript-project/jerryscript#2634 * Include test sets
Create a local lexical environment with the name of the function. While this is not too memory efficient, some corner cases requires its existence.