var f = function () {}
let x = {
get: function (theTarget, propName) {
return 0;
}
};
let p = new Proxy(Number, x);
try {
let n = new p(f);
} catch (e) {
print(e);
}
print('exit ...');
Execution steps
build/bin/jerry poc.js
Output
TypeError: Incorrect value is returned by a Proxy 'get' trap
exit ...
ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):108.
Error: JERRY_FATAL_FAILED_ASSERTION
Aborted
JerryScript revision
0d4969661810b9e618485c284c361e597144e9b9
Build platform
Ubuntu 20.04.4 LTS
Build steps
Test case
Execution steps
Output