1
Fork 0
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:
Andreas Kling 2022-11-09 15:22:12 +01:00
parent 8a87f4fa20
commit 88b15b0819
2 changed files with 7 additions and 4 deletions

View file

@ -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, {} };
}
}