[gjs/wip/ptomato/mozjs31: 8/8] js: Remove deprecated JS_IsConstructing()
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs31: 8/8] js: Remove deprecated JS_IsConstructing()
- Date: Sun, 18 Sep 2016 03:15:04 +0000 (UTC)
commit f103f4d106dd2ebceb9acc2fee508df579a3823d
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Sep 17 20:08:37 2016 -0700
js: Remove deprecated JS_IsConstructing()
In mozjs31 this is replaced with JS::CallArgs::isConstructing().
gjs/compat.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/compat.h b/gjs/compat.h
index 87c8083..5c18c75 100644
--- a/gjs/compat.h
+++ b/gjs/compat.h
@@ -81,7 +81,7 @@ gjs_##name##_constructor(JSContext *context, \
*/
#define GJS_NATIVE_CONSTRUCTOR_PRELUDE(name) \
{ \
- if (!JS_IsConstructing(context, vp)) { \
+ if (!argv.isConstructing()) { \
gjs_throw_constructor_error(context); \
return false; \
} \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]