networkException
fb6de442c6
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>
2022-10-06 16:41:36 +02:00
Andreas Kling
00c8f07192
LibJS: Make Script and Module GC-allocated
...
This ensures that code currently in any active or saved execution stack
always stays alive.
2022-09-06 00:27:09 +02:00
Lenny Maiorani
d00b79568f
Libraries: Use default constructors/destructors in LibJS
...
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-03-16 16:19:40 +00:00
Luke Wilde
f71f404e0c
LibWeb: Introduce the Environment Settings Object
...
The environment settings object is effectively the context a piece of
script is running under, for example, it contains the origin,
responsible document, realm, global object and event loop for the
current context. This effectively replaces ScriptExecutionContext, but
it cannot be removed in this commit as EventTarget still depends on it.
https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object
2022-02-08 17:47:44 +00:00
Andreas Kling
aeb72fe9d0
LibJS: Reduce header dependency graph in Realm.h
2022-02-07 19:16:46 +01:00
Andreas Kling
85cf80507f
LibJS: Make ScriptOrModule use WeakPtr instead of raw pointers
2022-02-07 19:16:45 +01:00
davidot
1b8ccf9a66
LibJS: Implement Module linking and evaluating
2022-01-22 01:21:18 +00:00
davidot
12c2f30c54
LibJS: Add filename tracking to Script and Module
...
This will allow us to resolve modules dynamically loaded from a script.
2022-01-22 01:21:18 +00:00
Andreas Kling
d553fd7f4f
LibJS: Add a barebones Module class
...
This corresponds to the "Abstract Module Record" from the spec.
2021-09-14 21:41:51 +02:00