LibJS: Default-initialize the current_node pointer member in CallFrame

Some parts of the code depend on this being nullptr without actually
initializing it, leading to odd random crashes.
e.g. `VM::call_internal`.
This commit is contained in:
Ali Mohammad Pur 2021-05-17 12:06:48 +04:30 committed by Andreas Kling
parent adbf555e64
commit b1b0db946e
Notes: sideshowbarker 2024-07-18 17:58:16 +09:00

View file

@ -39,7 +39,7 @@ struct ScopeFrame {
};
struct CallFrame {
const ASTNode* current_node;
const ASTNode* current_node { nullptr };
FlyString function_name;
Value callee;
Value this_value;