Change JERRY_ES2015_BUILTIN to JERRY_ES2015. (#3377)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2019-11-29 11:17:15 +01:00
committed by Robert Fancsik
parent f41afeb89f
commit 1b01bb034f
20 changed files with 87 additions and 98 deletions
+1 -4
View File
@@ -30,7 +30,6 @@ Alternatively, if you want to use a custom profile at
```
# Turn off every ES2015 feature EXCEPT the module system
JERRY_ES2015_BUILTIN=0
JERRY_ES2015_BUILTIN_DATAVIEW=0
JERRY_ES2015_BUILTIN_MAP=0
JERRY_ES2015_BUILTIN_PROMISE=0
@@ -99,8 +98,6 @@ defined to `1`.
#### ES6 (ES 2015) features
* `JERRY_ES2015_BUILTIN`:
Enables or disables the built-in updates of the 5.1 standard. There are some differences in those built-ins which available in both [5.1](http://www.ecma-international.org/ecma-262/5.1/) and [2015](http://www.ecma-international.org/ecma-262/6.0/) versions of the standard. JerryScript uses the latest definition by default.
* `JERRY_ES2015_BUILTIN_DATAVIEW`:
Enables or disables the [DataView](https://www.ecma-international.org/ecma-262/6.0/#sec-dataview-objects) built-in.
* `JERRY_ES2015_BUILTIN_MAP`:
@@ -126,9 +123,9 @@ defined to `1`.
* [rest parameter](http://www.ecma-international.org/ecma-262/6.0/#sec-function-definitions) language element.
* [symbol](https://www.ecma-international.org/ecma-262/6.0/#sec-symbol-objects) language element.
* [template strings](http://www.ecma-international.org/ecma-262/6.0/#sec-static-semantics-templatestrings) language element.
Furthermore all builtins follow the ES2015 specification including those which behave differently in ES5.1.
This option is evaulated first, any other `JERRY_ES2015_<name>` defines will override that specific entry.
Equivalent with setting the following defines to the `JERRY_ES2015` value:
* `JERRY_ES2015_BUILTIN`
* `JERRY_ES2015_BUILTIN_DATAVIEW`
* `JERRY_ES2015_BUILTIN_MAP`
* `JERRY_ES2015_BUILTIN_SET`