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

LibJS: Add a barebones Module class

This corresponds to the "Abstract Module Record" from the spec.
This commit is contained in:
Andreas Kling 2021-09-14 19:35:23 +02:00
parent df5414f47f
commit d553fd7f4f
3 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Module.h>
namespace JS {
Module::Module(Realm& realm)
: m_vm(realm.vm())
, m_realm(make_handle(&realm))
{
}
Module::~Module()
{
}
}