Implement Proxy object [[Construct]] internal method (#3657)

The algorithm is based on ECMA-262 v6, 9.5.14

JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
Szilagyi Adam
2020-04-06 12:17:23 +02:00
committed by GitHub
parent 48fa2ec01b
commit 901e57c7d0
4 changed files with 188 additions and 12 deletions
@@ -23,10 +23,5 @@ var handler = { defineProperty (target) {
var proxy = new Proxy(target, handler);
try {
// 22.1.2.3.8.c
Array.of.call(proxy, 5)
assert(false);
} catch (e) {
assert(e instanceof TypeError);
}
// 22.1.2.3.8.c
Array.of.call(proxy, 5)