1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

LibJS: Fix crash due to AST node tracking inside call stack

This commit is contained in:
Jean-Baptiste Boric 2021-03-01 19:18:33 +01:00 committed by Andreas Kling
parent 74d1caf7d1
commit 6f668ca3a4
4 changed files with 6 additions and 5 deletions

View file

@ -225,7 +225,7 @@ Value CallExpression::execute(Interpreter& interpreter, GlobalObject& global_obj
}
}
vm.call_frame().current_node = vm.node_stack().last();
vm.call_frame().current_node = vm.current_node();
Object* new_object = nullptr;
Value result;
if (is<NewExpression>(*this)) {