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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user