This fixes #5101
In rare cases the proxy object could get used after being incorrectly removed by the gc
Add stack checks to the start of all function calls
A Regression test is not included because I was unable to reproduce the crash with code that would be readable / easy to understand, only with a marginally simplified version of the example code given in the original issue, and @zherczeg advised against including it:
async function f0() {
function f6() {
return f0;
}
var proxy_handler = {
"get": f0,
};
f0.__proto__ = new Proxy(f6, proxy_handler);
var v12 = f0();
return f0;
}
f0();
This fixes #5101 In rare cases the proxy object could get used after being incorrectly removed by the gc
Add stack checks to the start of all function calls
A Regression test is not included because I was unable to reproduce the crash with code that would be readable / easy to understand, only with a marginally simplified version of the example code given in the original issue, and @zherczeg advised against including it:
However I can include it anyways if requested.