mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 04:35:17 +00:00
Support dynamic import
The static `import` should be prefered over the dynamic but it might be usefull when loading an object from a json file.
This commit is contained in:
@@ -102,6 +102,8 @@ private:
|
||||
// Functions used by the `ScriptContext`.
|
||||
[[nodiscard]] static JSObject* ResolveHook(JSContext* cx, JS::HandleValue,
|
||||
JS::HandleObject moduleRequest) noexcept;
|
||||
[[nodiscard]] static bool DynamicImportHook(JSContext* cx, JS::HandleValue referencingPrivate,
|
||||
JS::HandleObject moduleRequest, JS::HandleObject promise) noexcept;
|
||||
|
||||
RegistryType m_Registry;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user