-
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 |
462bedd
to
80c6af2
Compare
I've organized the commits log and fixed all minor issues. Here's the latest GitHub Actions run in my fork: |
@zherczeg Hi, I've fixed all minor issues. Could you please take another look when you have a moment? Thanks! |
JerryScript-DCO-1.0-Signed-off-by: hvwyl 594352301@qq.com
JerryScript-DCO-1.0-Signed-off-by: hvwyl 594352301@qq.com
JerryScript-DCO-1.0-Signed-off-by: hvwyl 594352301@qq.com
80c6af2
to
75dd57d
Compare
@zherczeg Hello, I have added the sign-off line 'DCO-1.0-Signed-off-by' in my commits; maybe a new GitHub Action is needed. I am currently still a student. Owing to lack of project experience, I have made quite a few detours. I am really very sorry if I have disturbed you. Thanks for your support and understanding. |
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