mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00: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
Notes:
sideshowbarker
2024-07-18 17:58:16 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/b1b0db946e9 Pull-request: https://github.com/SerenityOS/serenity/pull/7205
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue