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:
Szilagyi Adam
2020-03-11 15:34:46 +01:00
committed by GitHub
parent 38862c39a6
commit 64fd37d1db
5 changed files with 188 additions and 26 deletions
+1 -6
View File
@@ -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();