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
commit 6f668ca3a4
Notes: sideshowbarker 2024-07-18 21:48:33 +09:00
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)) {