
This applies a simple transformation, and adds a simple wrapper that translates the generator interface to the async function interface.
17 lines
217 B
C++
17 lines
217 B
C++
/*
|
|
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace JS {
|
|
|
|
enum class FunctionKind {
|
|
Generator,
|
|
Regular,
|
|
Async,
|
|
};
|
|
|
|
}
|