Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8ba0d1b

Browse files
Update profile README file (#4523)
Add previously missed new defines to the documentation and update the defines to be in lexicographical order. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
1 parent d646cf5 commit 8ba0d1b

File tree

2 files changed

+50
-27
lines changed

2 files changed

+50
-27
lines changed

‎jerry-core/config.h‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
# define JERRY_BUILTIN_ARRAY JERRY_BUILTINS
4141
#endif /* !defined (JERRY_BUILTIN_ARRAY) */
4242

43+
#ifndef JERRY_BUILTIN_BOOLEAN
44+
# define JERRY_BUILTIN_BOOLEAN JERRY_BUILTINS
45+
#endif /* !defined (JERRY_BUILTIN_BOOLEAN) */
46+
4347
#ifndef JERRY_BUILTIN_DATE
4448
# define JERRY_BUILTIN_DATE JERRY_BUILTINS
4549
#endif /* !defined (JERRY_BUILTIN_DATE) */
@@ -48,10 +52,6 @@
4852
# define JERRY_BUILTIN_ERRORS JERRY_BUILTINS
4953
#endif /* !defined (JERRY_BUILTIN_ERRORS) */
5054

51-
#ifndef JERRY_BUILTIN_BOOLEAN
52-
# define JERRY_BUILTIN_BOOLEAN JERRY_BUILTINS
53-
#endif /* !defined (JERRY_BUILTIN_BOOLEAN) */
54-
5555
#ifndef JERRY_BUILTIN_JSON
5656
# define JERRY_BUILTIN_JSON JERRY_BUILTINS
5757
#endif /* !defined (JERRY_BUILTIN_JSON) */
@@ -79,9 +79,9 @@
7979
# define JERRY_ESNEXT 1
8080
#endif /* !defined (JERRY_ESNEXT) */
8181

82-
#ifndef JERRY_BUILTIN_REALMS
83-
# define JERRY_BUILTIN_REALMS JERRY_ESNEXT
84-
#endif /* !defined (JERRY_BUILTIN_REALMS) */
82+
#ifndef JERRY_BUILTIN_BIGINT
83+
# define JERRY_BUILTIN_BIGINT JERRY_ESNEXT
84+
#endif /* !defined (JERRY_BUILTIN_BIGINT) */
8585

8686
#ifndef JERRY_BUILTIN_DATAVIEW
8787
# define JERRY_BUILTIN_DATAVIEW JERRY_ESNEXT
@@ -91,18 +91,6 @@
9191
# define JERRY_BUILTIN_MAP JERRY_ESNEXT
9292
#endif /* !defined (JERRY_BUILTIN_MAP) */
9393

94-
#ifndef JERRY_BUILTIN_SET
95-
# define JERRY_BUILTIN_SET JERRY_ESNEXT
96-
#endif /* !defined (JERRY_BUILTIN_SET) */
97-
98-
#ifndef JERRY_BUILTIN_WEAKMAP
99-
# define JERRY_BUILTIN_WEAKMAP JERRY_ESNEXT
100-
#endif /* !defined (JERRY_BUILTIN_WEAKMAP) */
101-
102-
#ifndef JERRY_BUILTIN_WEAKSET
103-
# define JERRY_BUILTIN_WEAKSET JERRY_ESNEXT
104-
#endif /* !defined (JERRY_BUILTIN_WEAKSET) */
105-
10694
#ifndef JERRY_BUILTIN_PROMISE
10795
# define JERRY_BUILTIN_PROMISE JERRY_ESNEXT
10896
#endif /* !defined (JERRY_BUILTIN_PROMISE) */
@@ -111,17 +99,29 @@
11199
# define JERRY_BUILTIN_PROXY JERRY_ESNEXT
112100
#endif /* !defined (JERRY_BUILTIN_PROXY) */
113101

102+
#ifndef JERRY_BUILTIN_REALMS
103+
# define JERRY_BUILTIN_REALMS JERRY_ESNEXT
104+
#endif /* !defined (JERRY_BUILTIN_REALMS) */
105+
114106
#ifndef JERRY_BUILTIN_REFLECT
115107
# define JERRY_BUILTIN_REFLECT JERRY_ESNEXT
116108
#endif /* !defined (JERRY_BUILTIN_REFLECT) */
117109

110+
#ifndef JERRY_BUILTIN_SET
111+
# define JERRY_BUILTIN_SET JERRY_ESNEXT
112+
#endif /* !defined (JERRY_BUILTIN_SET) */
113+
118114
#ifndef JERRY_BUILTIN_TYPEDARRAY
119115
# define JERRY_BUILTIN_TYPEDARRAY JERRY_ESNEXT
120116
#endif /* !defined (JERRY_BUILTIN_TYPEDARRAY) */
121117

122-
#ifndef JERRY_BUILTIN_BIGINT
123-
# define JERRY_BUILTIN_BIGINT JERRY_ESNEXT
124-
#endif /* !defined (JERRY_BUILTIN_BIGINT) */
118+
#ifndef JERRY_BUILTIN_WEAKMAP
119+
# define JERRY_BUILTIN_WEAKMAP JERRY_ESNEXT
120+
#endif /* !defined (JERRY_BUILTIN_WEAKMAP) */
121+
122+
#ifndef JERRY_BUILTIN_WEAKSET
123+
# define JERRY_BUILTIN_WEAKSET JERRY_ESNEXT
124+
#endif /* !defined (JERRY_BUILTIN_WEAKSET) */
125125

126126
#ifndef JERRY_MODULE_SYSTEM
127127
# define JERRY_MODULE_SYSTEM JERRY_ESNEXT

‎jerry-core/profiles/README.md‎

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,39 +98,62 @@ defined to `1`.
9898

9999
#### ES2015+ features
100100

101+
* `JERRY_BUILTIN_BIGINT`:
102+
Enables or disables the [BigInt](https://262.ecma-international.org/11.0/#sec-ecmascript-language-types-bigint-type) syntax and built-in.
101103
* `JERRY_BUILTIN_DATAVIEW`:
102104
Enables or disables the [DataView](https://www.ecma-international.org/ecma-262/6.0/#sec-dataview-objects) built-in.
103105
* `JERRY_BUILTIN_MAP`:
104106
Enables or disables the [Map](http://www.ecma-international.org/ecma-262/6.0/#sec-keyed-collection) built-ins.
105-
* `JERRY_BUILTIN_SET`:
106-
Enables or disables the [Set](https://www.ecma-international.org/ecma-262/6.0/#sec-set-objects) built-in.
107107
* `JERRY_BUILTIN_PROMISE`:
108108
Enables or disables the [Promise](http://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects) built-in.
109+
* `JERRY_BUILTIN_PROXY`:
110+
Enables or disables the [Proxy](https://262.ecma-international.org/11.0/#sec-proxy-object-internal-methods-and-internal-slots) related internal workings and built-in.
111+
* `JERRY_BUILTIN_REALMS`:
112+
Enables or disables the [Realms](https://262.ecma-international.org/11.0/#sec-code-realms) support in the engine.
113+
* `JERRY_BUILTIN_REFLECT`:
114+
Enables or disables the [Reflext](https://262.ecma-international.org/11.0/#sec-reflect-object) built-in.
115+
* `JERRY_BUILTIN_SET`:
116+
Enables or disables the [Set](https://www.ecma-international.org/ecma-262/6.0/#sec-set-objects) built-in.
109117
* `JERRY_BUILTIN_TYPEDARRAY`:
110118
Enables or disables the [ArrayBuffer](http://www.ecma-international.org/ecma-262/6.0/#sec-arraybuffer-objects) and [TypedArray](http://www.ecma-international.org/ecma-262/6.0/#sec-typedarray-objects) built-ins.
119+
* `JERRY_BUILTIN_WEAKMAP`:
120+
Enables or disables the [WeakMap](https://262.ecma-international.org/11.0/#sec-weakmap-objects) built-in.
121+
* `JERRY_BUILTIN_WEAKSET`:
122+
Enables or disables the [WeakSet](https://262.ecma-international.org/11.0/#sec-weakmap-objects) built-in.
111123
* `JERRY_MODULE_SYSTEM`:
112124
Enables or disable the [module system](http://www.ecma-international.org/ecma-262/6.0/#sec-modules) language element.
113-
* `JERRY_ESNEXT`: Enables or disables all of the implemented [ECMAScript2015+ features](http://www.ecma-international.org/ecma-262/10.0/).
125+
* `JERRY_ESNEXT`: Enables or disables all of the implemented [ECMAScript2015+ features](http://www.ecma-international.org/ecma-262/10.0/) above.
114126
* [arrow functions](http://www.ecma-international.org/ecma-262/6.0/#sec-arrow-function-definitions) language element.
127+
* [async functions](https://262.ecma-international.org/11.0/#sec-async-function-definitions) language element.
115128
* [class](https://www.ecma-international.org/ecma-262/6.0/#sec-class-definitions) language element.
116129
* [default value](http://www.ecma-international.org/ecma-262/6.0/#sec-function-definitions) for formal parameters.
117130
* [destructuring assignment](http://www.ecma-international.org/ecma-262/6.0/#sec-destructuring-assignment) language element.
118131
* [destructuring binding pattern](http://www.ecma-international.org/ecma-262/6.0/#sec-destructuring-binding-patterns) declarations.
119132
* [enhanced object initializer](http://www.ecma-international.org/ecma-262/6.0/#sec-object-initializer) language element.
120133
* [for-of](https://www.ecma-international.org/ecma-262/6.0/#sec-for-in-and-for-of-statements) language element.
134+
* [for-await-of](https://262.ecma-international.org/11.0/#sec-for-in-and-for-of-statements) language element.
121135
* [generator functions](http://www.ecma-international.org/ecma-262/6.0/#sec-generator-function-definitions) language element.
122136
* [iterator](https://www.ecma-international.org/ecma-262/6.0/#sec-iterator-interface) built-in.
137+
* [nullish coalescing](https://262.ecma-international.org/11.0/#prod-CoalesceExpression) built-in.
138+
* [numeric separator](https://github.com/tc39/proposal-numeric-separator) language element.
123139
* [rest parameter](http://www.ecma-international.org/ecma-262/6.0/#sec-function-definitions) language element.
140+
* [rest operator with object destructuring](https://262.ecma-international.org/11.0/#prod-ObjectBindingPattern) language element.
141+
* [spread](https://262.ecma-international.org/11.0/#prod-SpreadElement) syntax.
124142
* [symbol](https://www.ecma-international.org/ecma-262/6.0/#sec-symbol-objects) language element.
125143
* [template strings](http://www.ecma-international.org/ecma-262/6.0/#sec-static-semantics-templatestrings) language element.
126144

127145
Furthermore all builtins follow the latest ECMAScript specification including those which behave differently in ES5.1.
128146
This option is evaulated first, any other `JERRY_<name>` defines will override that specific entry.
129147
Equivalent with setting the following defines to the `JERRY_ESNEXT` value:
148+
* `JERRY_BUILTIN_BIGINT`
130149
* `JERRY_BUILTIN_DATAVIEW`
131150
* `JERRY_BUILTIN_MAP`
132-
* `JERRY_BUILTIN_SET`
133151
* `JERRY_BUILTIN_PROMISE`
152+
* `JERRY_BUILTIN_PROXY`
153+
* `JERRY_BUILTIN_REALMS`
154+
* `JERRY_BUILTIN_REFLECT`
155+
* `JERRY_BUILTIN_SET`
134156
* `JERRY_BUILTIN_TYPEDARRAY`
157+
* `JERRY_BUILTIN_WEAKMAP`
158+
* `JERRY_BUILTIN_WEAKSET`
135159
* `JERRY_MODULE_SYSTEM`
136-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /