[gjs/wip/ptomato/mozjs31: 23/23] WIP - Set global object trace hook
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs31: 23/23] WIP - Set global object trace hook
- Date: Wed, 9 Nov 2016 02:31:46 +0000 (UTC)
commit a4cfb87dc7f20051ad2c43578bc354e9c9a5a7f5
Author: Philip Chimento <philip endlessm com>
Date: Tue Nov 8 18:28:08 2016 -0800
WIP - Set global object trace hook
gjs/jsapi-util.cpp | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/gjs/jsapi-util.cpp b/gjs/jsapi-util.cpp
index 82e97e2..decac55 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -45,9 +45,20 @@ gjs_util_error_quark (void)
}
static JSClass global_class = {
- "GjsGlobal", JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(GJS_GLOBAL_SLOT_LAST),
- JS_PropertyStub, JS_DeletePropertyStub, JS_PropertyStub, JS_StrictPropertyStub,
- JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, NULL
+ "GjsGlobal",
+ JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(GJS_GLOBAL_SLOT_LAST),
+ JS_PropertyStub,
+ JS_DeletePropertyStub,
+ JS_PropertyStub,
+ JS_StrictPropertyStub,
+ JS_EnumerateStub,
+ JS_ResolveStub,
+ JS_ConvertStub,
+ NULL, /* finalize */
+ NULL, /* call */
+ NULL, /* hasInstance */
+ NULL, /* construct */
+ JS_GlobalObjectTraceHook
};
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]