Closed
Description
QuickJS version:
2788d71
Test case:
function foo() {
function Bar() {
}
class Apple extends Bar {
constructor(a) {
(() => {
for (const i in this) {}
eval(a);
return 0;
})();
}
}
const y = new Apple();
return y;
}
let x = new Promise(foo);Error:
crashed due to null pointer deference,
In function JSValue build_for_in_iterator(JSContext *ctx, JSValue obj), line 15129, the
p = JS_VALUE_GET_OBJ(obj);
returns 0.
Metadata
Metadata
Assignees
Labels
No labels