mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-21 20:03:08 +09:00
parent
7b30bfee4c
commit
5838eded5f
2 changed files with 20 additions and 0 deletions
|
|
@ -4739,6 +4739,20 @@ JS::GetModuleScript(JSContext* cx, JS::HandleObject moduleArg)
|
|||
return moduleArg->as<ModuleObject>().script();
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(bool)
|
||||
JS::IsModuleErrored(JSObject* moduleArg)
|
||||
{
|
||||
AssertHeapIsIdle();
|
||||
return moduleArg->as<ModuleObject>().status() == MODULE_STATUS_ERRORED;
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JS::Value)
|
||||
JS::GetModuleError(JSObject* moduleArg)
|
||||
{
|
||||
AssertHeapIsIdle();
|
||||
return moduleArg->as<ModuleObject>().error();
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JSObject*)
|
||||
JS_New(JSContext* cx, HandleObject ctor, const JS::HandleValueArray& inputArgs)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue