1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:15:06 +00:00

LibJS: Add Function() and Function.prototype

This commit is contained in:
Linus Groh 2020-04-04 14:34:31 +01:00 committed by Andreas Kling
parent 4d931b524d
commit 2944039d6b
15 changed files with 463 additions and 4 deletions

View file

@ -24,16 +24,14 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <AK/FlyString.h>
#include <LibJS/Heap/Heap.h>
#include <LibJS/Interpreter.h>
#include <LibJS/Runtime/Function.h>
#include <LibJS/Runtime/Value.h>
namespace JS {
Function::Function()
{
put("prototype", heap().allocate<Object>());
set_prototype(interpreter().function_prototype());
}
Function::~Function()