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:
parent
681787de76
commit
46dabf02ec
7 changed files with 169 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue