-
Notifications
You must be signed in to change notification settings - Fork 682
An error should be thrown when defining a property for a read-only variable in strict mode. #2914
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
Comments
@Implementist Thanks for the report I think it is a valid bug, since I've found the corresponding part of the standard for that special case. https://www.ecma-international.org/ecma-262/5.1/#sec-8.7
Do you have any fix for this issue or are you planning to open a PR for this problem? (Ofc, it is only optional.) |
@rerobika Thanks for your reply. I have no idea about how to fix this at present. |
@Implementist No problem I'll take a look at it. |
@rerobika I've done a bit of debugging and created this: galpeter@d3f6254 however I think it is only a partial fix. |
…e base cannot be extensible Related part of the standard: https://www.ecma-international.org/ecma-262/5.1/#sec-8.7 1st note. This patch fixes jerryscript-project#2914. Co-authored-by: Gabor Loki loki@inf.u-szeged.hu JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
…e base cannot be extensible Related part of the standard: https://www.ecma-international.org/ecma-262/5.1/#sec-8.7 1st note. This patch fixes jerryscript-project#2914. Co-authored-by: Gabor Loki loki@inf.u-szeged.hu JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
…e base cannot be extensible (#2917) Related part of the standard: https://www.ecma-international.org/ecma-262/5.1/#sec-8.7 1st note. This patch fixes #2914. Co-authored-by: Gabor Loki loki@inf.u-szeged.hu JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
As the title suggests, the testcase is:
The defination and assignment at the third line leads to an exception when I run this testcase in V8 and SpiderMonkey. But Jerry doesn't throws any exception.
The text was updated successfully, but these errors were encountered: