bellard / quickjs

Public repository of the QuickJS Javascript Engine.
https://bellard.org/quickjs
Other
8.51k stars 892 forks source link

Fix GC leak in `js_proxy_get()` #302

Closed xeioex closed 4 months ago

xeioex commented 6 months ago

Simplified test case to reproduce:

function a() {
    return {};
}
var d = new Date();
var o1 = new Proxy(d, {get: 0});
var o2 = new Proxy(d, o1);
var o = new Proxy(o2, {get: a})

o.a