mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 04:35:17 +00:00
Support the import.meta property
Through the `import.meta` property the engine can pass some values to the module. Currently only the `path` of the script file is exposed.
This commit is contained in:
@@ -100,6 +100,8 @@ public:
|
||||
|
||||
private:
|
||||
// Functions used by the `ScriptContext`.
|
||||
[[nodiscard]] static bool MetadataHook(JSContext* cx, JS::HandleValue privateValue,
|
||||
JS::HandleObject metaObject) noexcept;
|
||||
[[nodiscard]] static JSObject* ResolveHook(JSContext* cx, JS::HandleValue,
|
||||
JS::HandleObject moduleRequest) noexcept;
|
||||
[[nodiscard]] static bool DynamicImportHook(JSContext* cx, JS::HandleValue referencingPrivate,
|
||||
|
||||
Reference in New Issue
Block a user