commit | 7717d2ee27723b9452d98f4b5082e03ca685cf85 | [log] [tgz] |
---|---|---|
author | Daniel Balla <dballa@inf.u-szeged.hu> | Mon Sep 24 13:49:41 2018 +0200 |
committer | László Langó <llango.u-szeged@partner.samsung.com> | Mon Sep 24 13:49:41 2018 +0200 |
tree | 4fa0b3f859307b13ec4d6925cbda1d40ee69527e | |
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
JerryScript is a lightweight JavaScript engine for resource-constrained devices such as microcontrollers. It can run on devices with less than 64 KB of RAM and less than 200 KB of flash memory.
Key characteristics of JerryScript:
Additional information can be found on our project page and Wiki.
Memory usage and Binary footprint are measured at here with real target daily.
The following table shows the latest results on the devices:
STM32F4-Discovery | |
---|---|
Raspberry Pi 2 | |
Artik053 |
IRC channel: #jerryscript on freenode Mailing list: jerryscript-dev@groups.io, you can subscribe here and access the mailing list archive here.
git clone https://github.com/jerryscript-project/jerryscript.git cd jerryscript
python tools/build.py
For additional information see Getting Started.
The project can only accept contributions which are licensed under the Apache License 2.0 and are signed according to the JerryScript Developer's Certificate of Origin. For further information please see our Contribution Guidelines.
JerryScript is open source software under the Apache License 2.0. Complete license and copyright information can be found in the source code.
Copyright JS Foundation and other contributors, http://js.foundation
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.