aboutsummaryrefslogtreecommitdiff
path: root/docs/02.API-REFERENCE.md
diff options
context:
space:
mode:
authorZoltan Herczeg <zherczeg.u-szeged@partner.samsung.com>2021-03-03 17:12:36 +0100
committerGitHub <noreply@github.com>2021-03-03 17:12:36 +0100
commita95e3e37e1f7df431f6f34c4686199778ca89eb5 (patch)
tree04c04ba21f60ad319a5a45e4f7776e53f559075c /docs/02.API-REFERENCE.md
parent129ca4946c981cc6349fae2eb875c5b34ef77049 (diff)
Add more skip check options for Proxy objects (#4614)
Reorganize the flags to follow the list in ES2020 section 9.5 JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
Diffstat (limited to 'docs/02.API-REFERENCE.md')
-rw-r--r--docs/02.API-REFERENCE.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/02.API-REFERENCE.md b/docs/02.API-REFERENCE.md
index 0189ce5f..0d230bdc 100644
--- a/docs/02.API-REFERENCE.md
+++ b/docs/02.API-REFERENCE.md
@@ -94,8 +94,9 @@ These option bits allow specializing Proxies with non-standard behaviour.
These flags are recommended only for those trusted Proxies, whose handlers
produce correct results.
-- JERRY_PROXY_SKIP_GET_CHECKS - skip [[Get]] result checks
-- JERRY_PROXY_SKIP_GET_OWN_PROPERTY_CHECKS - skip [[GetOwnProperty]] result checks
+- JERRY_PROXY_SKIP_RESULT_VALIDATION - skip result validation for [[GetPrototypeOf]], [[SetPrototypeOf]], [[IsExtensible]],
+ [[PreventExtensions]], [[GetOwnProperty]], [[DefineOwnProperty]], [[HasProperty]],
+ [[Get]], [[Set]], [[Delete]] and [[OwnPropertyKeys]]
*New in version [[NEXT_RELEASE]]*.
@@ -5760,7 +5761,7 @@ main (void)
jerry_value_t target = jerry_create_object ();
jerry_value_t handler = jerry_create_object ();
- jerry_value_t proxy = jerry_create_special_proxy (target, handler, JERRY_PROXY_SKIP_GET_CHECKS);
+ jerry_value_t proxy = jerry_create_special_proxy (target, handler, JERRY_PROXY_SKIP_RESULT_VALIDATION);
jerry_release_value (target);
jerry_release_value (handler);