summaryrefslogtreecommitdiffstats
path: root/js/src/jsapi.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-08-06 18:27:32 +0000
committerMoonchild <moonchild@palemoon.org>2020-08-30 09:37:03 +0000
commit1012dbe9e5b2d00f967b0523f94ac8cc7ed3118d (patch)
tree7898722725214e5bced6a058af9e5cd86f635e5a /js/src/jsapi.h
parent9982c1f5cb3dfe361b9e9d21e5582a5e35d4c7fb (diff)
downloadUXP-1012dbe9e5b2d00f967b0523f94ac8cc7ed3118d.tar
UXP-1012dbe9e5b2d00f967b0523f94ac8cc7ed3118d.tar.gz
UXP-1012dbe9e5b2d00f967b0523f94ac8cc7ed3118d.tar.lz
UXP-1012dbe9e5b2d00f967b0523f94ac8cc7ed3118d.tar.xz
UXP-1012dbe9e5b2d00f967b0523f94ac8cc7ed3118d.zip
[js] Add some utility functions to get the current JS runtime.
Diffstat (limited to 'js/src/jsapi.h')
-rw-r--r--js/src/jsapi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h
index 76781cf06..c6299e3f5 100644
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -995,6 +995,9 @@ JS_NewContext(uint32_t maxbytes,
extern JS_PUBLIC_API(void)
JS_DestroyContext(JSContext* cx);
+extern JS_PUBLIC_API(JSRuntime*)
+JS_GetRuntime(JSContext* cx);
+
typedef double (*JS_CurrentEmbedderTimeFunction)();
/**