mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
LibJS: Add [[HostDefined]] field to Modules
This patch adds the [[HostDefined]] field defined in https://tc39.es/ecma262/#table-module-record-fields to module records. Co-authored-by: davidot <davidot@serenityos.org>
This commit is contained in:
parent
cfa0c9bf9f
commit
fb6de442c6
6 changed files with 21 additions and 13 deletions
|
@ -11,8 +11,8 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
CyclicModule::CyclicModule(Realm& realm, StringView filename, bool has_top_level_await, Vector<ModuleRequest> requested_modules)
|
||||
: Module(realm, filename)
|
||||
CyclicModule::CyclicModule(Realm& realm, StringView filename, bool has_top_level_await, Vector<ModuleRequest> requested_modules, Script::HostDefined* host_defined)
|
||||
: Module(realm, filename, host_defined)
|
||||
, m_requested_modules(move(requested_modules))
|
||||
, m_has_top_level_await(has_top_level_await)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue