1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibJS: Add support for await expressions

This commit is contained in:
Idan Horowitz 2021-11-09 22:52:21 +02:00 committed by Linus Groh
parent 681787de76
commit 46dabf02ec
7 changed files with 169 additions and 4 deletions

View file

@ -165,6 +165,8 @@ public:
using ThrowCompletionOr<Empty>::ThrowCompletionOr;
};
ThrowCompletionOr<Value> await(GlobalObject&, Value);
// 6.2.3.2 NormalCompletion ( value ), https://tc39.es/ecma262/#sec-normalcompletion
inline Completion normal_completion(Optional<Value> value)
{