Implement Proxy object [[Get]] internal method (#3604)
The algorithm is based on ECMA-262 v6, 9.5.8 JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
@@ -23,12 +23,7 @@ var revocable = Proxy.revocable(target, handler);
|
||||
|
||||
var proxy = revocable.proxy;
|
||||
|
||||
try {
|
||||
proxy.a; // FIXME: this should return 5 when proxy.[[Get]] has been implemted
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e instanceof TypeError);
|
||||
}
|
||||
assert(proxy.a === 5);
|
||||
|
||||
revocable.revoke();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user