mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 03:36:36 +00:00
LibJS: Fix crash due to AST node tracking inside call stack
This commit is contained in:
parent
74d1caf7d1
commit
6f668ca3a4
Notes:
sideshowbarker
2024-07-18 21:48:33 +09:00
Author: https://github.com/boricj
Commit: 6f668ca3a4
Pull-request: https://github.com/SerenityOS/serenity/pull/5588
4 changed files with 6 additions and 5 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue