mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibJS: Change normal_completion() parameter to Optional<Value>
The Completion constructor `VERIFY()`s that the passed argument is not an empty Value, so normal_completion({}) would crash (although it's currently not being used anywhere). We want to pass an empty Optional<Value> instead.
This commit is contained in:
parent
a48985422c
commit
1b1bf5c321
Notes:
sideshowbarker
2024-07-18 02:22:44 +09:00
Author: https://github.com/linusg
Commit: 1b1bf5c321
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ public:
|
|||
};
|
||||
|
||||
// 6.2.3.2 NormalCompletion ( value ), https://tc39.es/ecma262/#sec-normalcompletion
|
||||
inline Completion normal_completion(Value value)
|
||||
inline Completion normal_completion(Optional<Value> value)
|
||||
{
|
||||
return { Completion::Type::Normal, value, {} };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue