diff options
author | Daniel Balla <dballa@inf.u-szeged.hu> | 2018-09-24 13:49:41 +0200 |
---|---|---|
committer | László Langó <llango.u-szeged@partner.samsung.com> | 2018-09-24 13:49:41 +0200 |
commit | 7717d2ee27723b9452d98f4b5082e03ca685cf85 (patch) | |
tree | 4fa0b3f859307b13ec4d6925cbda1d40ee69527e /jerry-debugger/jerry_client_ws.py | |
parent | d08b46d15a98d71c75b524620dec11a09cf64400 (diff) |
Change Promise properties to internal properties (#2526)
There was an issue in the Promise implementation where properties were accessible from JavaScript.
ie. `Object.defineProperty(Object.prototype, 0, {})` could modify properties which should've been inaccessible.
The reason behind that is somewhat interesting as 0-7 were the same values as the enum values in the property list of the Promise object.
Changing these properties to internal, makes them inaccessible from JS side.
Also some tests have been changed, namely 2490 and 2465.
The 2490 one got renamed, and all of the testcases from the issue have been added.
2465 got changed as well, since currently our Promise implementation can't display Promise errors, so we should check if an error is correctly returned.
Fixes #2490
Co-authored-by: Robert Fancsik <frobert@inf.u-szeged.hu>
JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
Diffstat (limited to 'jerry-debugger/jerry_client_ws.py')
0 files changed, 0 insertions, 0 deletions