-
Notifications
You must be signed in to change notification settings - Fork 684
Fix "unhandled exception occurs when a private variable increments" #5239
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
base: master
Are you sure you want to change the base?
Conversation
Thank you! Could you add a test case? |
ok, i have added the test case for issue #5238 |
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
tests/jerry/private_fields.js
Outdated
} | ||
} | ||
var var19 = new R(); | ||
var19.test(); |
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.
Add a newline at the end.
a newline at the end of file |
Somehow these tests are crashing, e.g. FAIL (-6): tests/jerry/private_fields.js |
I checked the latest commit of branch. Files I noticed that the crushing dosen't occur in release version, and it only occurs in debug version. Then I compiled the debug version in vm. For input
The real reason is that But The way to fix: Manually adjusting stack usage for private-field condition. However, for release version, assert will be disabled. So I didn't notice this crushing. In addition, I'm using a nickname on github. So I updated the comment in order to fit signed-off checking. Should I resubmit the pr? |
There is no need for a second pr. |
I noticed the Checks in Action #4395, it throw
although I have updated the comment 2 days ago. I don't know if this can be ignored. Anyway, Win_x86-64_Tests-MINGW in Action #4395. There's also problem in |
This issue has been solved in the latest commit. |
Fix "unhandled exception occurs when a private variable increments" #5238
Added handling for the condition of private variable incr/decr in
js-parser-expr.c
andvm.c
.JerryScript-DCO-1.0-Signed-off-by: hvwyl 594352301@qq.com