Memory Leak in Number Proxy
Closed this issue · 1 comments
anbu1024 commented
JerryScript revision
Build platform
Ubuntu 20.04.4 LTS
Build steps
python tools/build.py --debug --logging=on --error-messages=on --line-info=on
Test case
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
anbu1024 commented
Due to network problems, duplicate submissions have occurred, please delete this issue.