mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +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:
parent
adbf555e64
commit
b1b0db946e
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ struct ScopeFrame {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CallFrame {
|
struct CallFrame {
|
||||||
const ASTNode* current_node;
|
const ASTNode* current_node { nullptr };
|
||||||
FlyString function_name;
|
FlyString function_name;
|
||||||
Value callee;
|
Value callee;
|
||||||
Value this_value;
|
Value this_value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue