[gjs/wip/ptomato/mozjs45prep: 2/16] mozjs38 improvement



commit 438e2024b1a5cc32cefb4576483f1b310d4b57c1
Author: Philip Chimento <philip endlessm com>
Date:   Sun Mar 19 05:19:41 2017 +0000

    mozjs38 improvement

 gjs/jsapi-util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index 912db24..52efee1 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -275,7 +275,7 @@ gjs_##name##_constructor(JSContext  *context,           \
  * be at the very top.
  */
 #define GJS_NATIVE_CONSTRUCTOR_VARIABLES(name)          \
-    JS::RootedObject object(context, NULL);                         \
+    JS::RootedObject object(context);                               \
     JS::CallArgs argv G_GNUC_UNUSED = JS::CallArgsFromVp(argc, vp);
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]