1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:47:35 +00:00

LibJS: Add a Completion(ThrowCompletionOr<Value> const&) constructor

This commit is contained in:
Linus Groh 2021-11-14 00:48:15 +00:00
parent 01c2570678
commit 68ac13a192
2 changed files with 14 additions and 0 deletions

View file

@ -46,6 +46,8 @@ public:
VERIFY(!m_value->is_empty());
}
Completion(ThrowCompletionOr<Value> const&);
// 5.2.3.1 Implicit Completion Values, https://tc39.es/ecma262/#sec-implicit-completion-values
// Not `explicit` on purpose.
Completion(Value value)