ladybird/Userland/Libraries/LibJS/Runtime/FunctionKind.h
Ali Mohammad Pur 3b0bf05fa5 LibJS: Implement async functions as generator functions in BC mode
This applies a simple transformation, and adds a simple wrapper that
translates the generator interface to the async function interface.
2021-11-12 13:01:59 +00:00

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