mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibJS: Move throw_completion(Value) out of line
This allows us to instrument this function locally without rebuilding 1000+ files.
This commit is contained in:
parent
8a87f4fa20
commit
88b15b0819
2 changed files with 7 additions and 4 deletions
|
@ -120,4 +120,10 @@ ThrowCompletionOr<Value> await(VM& vm, Value value)
|
|||
return throw_completion(result);
|
||||
}
|
||||
|
||||
// 6.2.3.3 ThrowCompletion ( value ), https://tc39.es/ecma262/#sec-throwcompletion
|
||||
Completion throw_completion(Value value)
|
||||
{
|
||||
return { Completion::Type::Throw, value, {} };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue