[gjs/wip/ptomato/mozjs45: 4/33] WAT - dont do this
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs45: 4/33] WAT - dont do this
- Date: Mon, 17 Apr 2017 07:26:59 +0000 (UTC)
commit 3ad8df5c88b7bde45773970093931c4208a66fa4
Author: Philip Chimento <philip chimento gmail com>
Date: Fri Apr 14 22:46:43 2017 -0700
WAT - dont do this
gjs/jsapi-class.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/jsapi-class.h b/gjs/jsapi-class.h
index 2a5984a..c3f8e9a 100644
--- a/gjs/jsapi-class.h
+++ b/gjs/jsapi-class.h
@@ -228,7 +228,7 @@ gjs_##cname##_define_proto(JSContext *cx, \
JS::RootedObject ctor_obj(cx, proto); \
JS::RootedId class_name(cx, \
gjs_intern_string_to_id(cx, gjs_##cname##_class.name)); \
- if (ctor != nullptr) { \
+ if (strcmp(#ctor, "nullptr") != 0) { \
if (!gjs_object_require_property(cx, in_obj, #cname " constructor", \
class_name, &ctor_obj)) \
return false; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]