Implement Proxy object [[HasProperty]] internal method (#3642)

The algorithm is based on ECMA-262 v6, 9.5.7

JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
Szilagyi Adam
2020-03-27 14:33:56 +01:00
committed by GitHub
parent 3c7a776cae
commit 94b8b4bb7b
4 changed files with 211 additions and 13 deletions
+3 -8
View File
@@ -29,14 +29,9 @@ var proxy = new Proxy(target, handler);
var a = 5;
try {
// ecma_op_delete_binding
with (proxy) {
delete a
}
assert(false);
} catch (e) {
assert(e instanceof TypeError);
// ecma_op_delete_binding
with (proxy) {
delete a
}
try {