1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

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

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;