mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-30 11:18:39 +09:00
[js] Add some utility functions to get the current JS runtime.
This commit is contained in:
parent
6639e9cdac
commit
976239c8d0
2 changed files with 8 additions and 0 deletions
|
|
@ -483,6 +483,11 @@ JS_DestroyContext(JSContext* cx)
|
|||
DestroyContext(cx);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JSRuntime*)
|
||||
JS_GetRuntime(JSContext* cx) {
|
||||
return cx->runtime();
|
||||
}
|
||||
|
||||
static JS_CurrentEmbedderTimeFunction currentEmbedderTimeFunction;
|
||||
|
||||
JS_PUBLIC_API(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue