-
Notifications
You must be signed in to change notification settings - Fork 676
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
Improve jerry_is_feature_enabled with object availability information #2250
Improve jerry_is_feature_enabled with object availability information #2250
Conversation
docs/02.API-REFERENCE.md
Outdated
@@ -53,6 +53,11 @@ Possible compile time enabled feature types: | |||
- JERRY_FEATURE_SNAPSHOT_EXEC - executing snapshot files | |||
- JERRY_FEATURE_DEBUGGER - debugging | |||
- JERRY_FEATURE_VM_EXEC_STOP - stopping ECMAScript execution | |||
- JERRY_FEATURE_JSON - JSON functions | |||
- JERRY_FEATURE_PROMISE - promise builtin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indentation
docs/02.API-REFERENCE.md
Outdated
- JERRY_FEATURE_JSON - JSON functions | ||
- JERRY_FEATURE_PROMISE - promise builtin | ||
- JERRY_FEATURE_TYPEDARRAY - Typedarray builtin | ||
- JERRY_FEATURE_DATE - Date builtin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indentation
jerry-core/api/jerry.c
Outdated
|| feature == JERRY_FEATURE_DATE | ||
#endif /* !CONFIG_DISABLE_DATE_BUILTIN */ | ||
#ifndef CONFIG_DISABLE_ES2015_TYPEDARRAY_BUILTIN | ||
|| feature == JERRY_FEATURE_REGEX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not JERRY_FEATURE_REGEX. Please update the name of the macro to CONFIG_DISABLE_REGEXP_BUILTIN
df6c9c0
to
39ca9b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few changes.
docs/02.API-REFERENCE.md
Outdated
@@ -53,6 +53,11 @@ Possible compile time enabled feature types: | |||
- JERRY_FEATURE_SNAPSHOT_EXEC - executing snapshot files | |||
- JERRY_FEATURE_DEBUGGER - debugging | |||
- JERRY_FEATURE_VM_EXEC_STOP - stopping ECMAScript execution | |||
- JERRY_FEATURE_JSON - JSON functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSON support
docs/02.API-REFERENCE.md
Outdated
@@ -53,6 +53,11 @@ Possible compile time enabled feature types: | |||
- JERRY_FEATURE_SNAPSHOT_EXEC - executing snapshot files | |||
- JERRY_FEATURE_DEBUGGER - debugging | |||
- JERRY_FEATURE_VM_EXEC_STOP - stopping ECMAScript execution | |||
- JERRY_FEATURE_JSON - JSON functions | |||
- JERRY_FEATURE_PROMISE - promise builtin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
promise support
also change builtin -> support everywhere
JERRY_FEATURE_PROMISE, /**< promise builtin */ | ||
JERRY_FEATURE_TYPEDARRAY, /**< Typedarray builtin */ | ||
JERRY_FEATURE_DATE, /**< Date builtin */ | ||
JERRY_FEATURE_REGEX, /**< Regex builtin */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update these.
39ca9b0
to
d001b25
Compare
LGTM (informally) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
JERRY_FEATURE_PROMISE, /**< promise support */ | ||
JERRY_FEATURE_TYPEDARRAY, /**< Typedarray support */ | ||
JERRY_FEATURE_DATE, /**< Date support */ | ||
JERRY_FEATURE_REGEX, /**< Regex support */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The standard calls it RegExp
and not Regex
, so please rename to be consistent. http://www.ecma-international.org/ecma-262/5.1/index.html#sec-15.10
JERRY_FEATURE_REGEXP, /**< RegExp support */
docs/02.API-REFERENCE.md
Outdated
- JERRY_FEATURE_PROMISE - promise support | ||
- JERRY_FEATURE_TYPEDARRAY - Typedarray support | ||
- JERRY_FEATURE_DATE - Date support | ||
- JERRY_FEATURE_REGEX - Regex support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JERRY_FEATURE_REGEXP - RegExp support
jerry-core/api/jerry.c
Outdated
|| feature == JERRY_FEATURE_DATE | ||
#endif /* !CONFIG_DISABLE_DATE_BUILTIN */ | ||
#ifndef CONFIG_DISABLE_REGEXP_BUILTIN | ||
|| feature == JERRY_FEATURE_REGEX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JERRY_FEATURE_REGEXP
JerryScript-DCO-1.0-Signed-off-by: Zsolt Raduska [email protected]
d001b25
to
9c5da0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Add the ability to throw an error to python debugger (jerryscript-project#2188) This patch makes it possible to throw an error from the python debugger client using the `throw` command. JerryScript-DCO-1.0-Signed-off-by: Daniel Balla [email protected] * Fix typo and redundant text in the documentation. (jerryscript-project#2260) JerryScript-DCO-1.0-Signed-off-by: Daniel Vince [email protected] * Fix accessing the contents of a direct string (jerryscript-project#2261) In the `ecma_string_get_chars` method the contents of a direct string is accessed incorrectly. It tries to extract the magic string id from the string pointer but the direct string does not need this step. JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected] * Remove websocket message macros in debugger (jerryscript-project#2262) JERRY_DEBUGGER_INIT_SEND_MESSAGE JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE_FROM_TYPE JerryScript-DCO-1.0-Signed-off-by: Jimmy Huang [email protected] * Remove TARGET_HOST macros (jerryscript-project#2264) Remove TARGET_HOST defines from the jerry-libc module and replace with compiler provided macros. JerryScript-DCO-1.0-Signed-off-by: Istvan Miklos [email protected] * Fix bug in stringToCesu8 conversion for 0x7ff (jerryscript-project#2267) JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected] * Add ecma_free_all_enqueued_jobs function (jerryscript-project#2265) This function releases any remaining promise job that wasn't completed. Also added this function to `jerry_cleanup ()`, therefore it will be automatically run. JerryScript-DCO-1.0-Signed-off-by: Daniel Balla [email protected] * Improve jerry_is_feature_enabled with object availability information (jerryscript-project#2250) JerryScript-DCO-1.0-Signed-off-by: Zsolt Raduska [email protected] * Add json parse and stringify function to jerryscript c api (jerryscript-project#2243) JerryScript-DCO-1.0-Signed-off-by: Zsolt Raduska [email protected] * Simplify debugger-ws.h (jerryscript-project#2266) Remove several macros and types from it. This change simplifies the external debugger interface. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected] * Add finalize_cb to jerry_context_data_manager_t (jerryscript-project#2269) This patch adds a new finalize_cb callback to jerry_context_data_manager_t. The callback is run as the very last thing in jerry_cleanup, after the VM has been torn down entirely. There was already the deinit_cb, which is run while the VM is still in the process of being torn down. The reason the deinit_cb is not always sufficient is that there may still be objects alive (because they still being referenced) that have native pointers associated with the context manager that is being deinit'ed. As a result, the free_cb's for those objects can get called *after* the associated context manager's deinit_cb is run. This makes cleanup of manager state that is depended on by the live objects impossible to do in the deinit_cb. That type of cleanup can only be done when all values have been torn down completely. JerryScript-DCO-1.0-Signed-off-by: Martijn The [email protected] * Rework snapshot generation API. (jerryscript-project#2259) Also remove eval context support. It provides no practical advantage. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected] * Implement the ES2015 version of Object.getPrototypeOf and add a test file for it (jerryscript-project#2256) JerryScript-DCO-1.0-Signed-off-by: Peter Marki [email protected] * Move DevTools integration code into jerry-client-ts subdir JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected] * Fix some things to match the new directory for TS code JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected]
…jerryscript-project#2250) JerryScript-DCO-1.0-Signed-off-by: Zsolt Raduska [email protected]
JerryScript-DCO-1.0-Signed-off-by: Zsolt Raduska [email protected]