[gjs] update delete property in JSClass definitions to use JS_DeletePropertyStub



commit 0023420277ce44049783b3f2e0ee8f4716cb7133
Author: Tim Lunn <tim feathertop org>
Date:   Sat Sep 28 09:33:44 2013 +1000

    update delete property in JSClass definitions to use JS_DeletePropertyStub
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711046

 gi/boxed.cpp       |    2 +-
 gi/function.cpp    |    2 +-
 gi/gerror.cpp      |    2 +-
 gi/interface.cpp   |    2 +-
 gi/keep-alive.cpp  |    2 +-
 gi/ns.cpp          |    2 +-
 gi/object.cpp      |    2 +-
 gi/param.cpp       |    2 +-
 gi/repo.cpp        |    2 +-
 gi/union.cpp       |    2 +-
 gjs/byteArray.cpp  |    2 +-
 gjs/importer.cpp   |    2 +-
 gjs/jsapi-util.cpp |    2 +-
 gjs/jsapi-util.h   |    2 +-
 14 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/gi/boxed.cpp b/gi/boxed.cpp
index a75da31..b9fa15a 100644
--- a/gi/boxed.cpp
+++ b/gi/boxed.cpp
@@ -931,7 +931,7 @@ struct JSClass gjs_boxed_class = {
     JSCLASS_NEW_RESOLVE |
     JSCLASS_HAS_RESERVED_SLOTS(1),
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     JS_PropertyStub,
     JS_StrictPropertyStub,
     JS_EnumerateStub,
diff --git a/gi/function.cpp b/gi/function.cpp
index e2e731f..7ea6de9 100644
--- a/gi/function.cpp
+++ b/gi/function.cpp
@@ -1359,7 +1359,7 @@ struct JSClass gjs_function_class = {
     "GIRepositoryFunction", /* means "new GIRepositoryFunction()" works */
     JSCLASS_HAS_PRIVATE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     JS_PropertyStub,
     JS_StrictPropertyStub,
     JS_EnumerateStub,
diff --git a/gi/gerror.cpp b/gi/gerror.cpp
index eb6fa1c..ac6ef03 100644
--- a/gi/gerror.cpp
+++ b/gi/gerror.cpp
@@ -310,7 +310,7 @@ struct JSClass gjs_error_class = {
     JSCLASS_HAS_PRIVATE |
     JSCLASS_NEW_RESOLVE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     JS_PropertyStub,
     JS_StrictPropertyStub,
     JS_EnumerateStub,
diff --git a/gi/interface.cpp b/gi/interface.cpp
index 2766304..e2707e8 100644
--- a/gi/interface.cpp
+++ b/gi/interface.cpp
@@ -147,7 +147,7 @@ struct JSClass gjs_interface_class = {
     JSCLASS_HAS_PRIVATE |
     JSCLASS_NEW_RESOLVE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     JS_PropertyStub,
     JS_StrictPropertyStub,
     JS_EnumerateStub,
diff --git a/gi/keep-alive.cpp b/gi/keep-alive.cpp
index e63337b..bf89d04 100644
--- a/gi/keep-alive.cpp
+++ b/gi/keep-alive.cpp
@@ -153,7 +153,7 @@ struct JSClass gjs_keep_alive_class = {
     "__private_GjsKeepAlive", /* means "new __private_GjsKeepAlive()" works */
     JSCLASS_HAS_PRIVATE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     JS_PropertyStub,
     JS_StrictPropertyStub,
     JS_EnumerateStub,
diff --git a/gi/ns.cpp b/gi/ns.cpp
index 64385dd..c7ad03e 100644
--- a/gi/ns.cpp
+++ b/gi/ns.cpp
@@ -158,7 +158,7 @@ struct JSClass gjs_ns_class = {
     JSCLASS_HAS_PRIVATE |
     JSCLASS_NEW_RESOLVE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     JS_PropertyStub,
     JS_StrictPropertyStub,
     JS_EnumerateStub,
diff --git a/gi/object.cpp b/gi/object.cpp
index 1b746bc..0c637b3 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -1781,7 +1781,7 @@ struct JSClass gjs_object_instance_class = {
     JSCLASS_HAS_PRIVATE |
     JSCLASS_NEW_RESOLVE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     object_instance_get_prop,
     object_instance_set_prop,
     JS_EnumerateStub,
diff --git a/gi/param.cpp b/gi/param.cpp
index ae04e0e..7983d34 100644
--- a/gi/param.cpp
+++ b/gi/param.cpp
@@ -414,7 +414,7 @@ struct JSClass gjs_param_class = {
     "GObject_ParamSpec",
     JSCLASS_HAS_PRIVATE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     param_get_prop,
     JS_StrictPropertyStub,
     JS_EnumerateStub,
diff --git a/gi/repo.cpp b/gi/repo.cpp
index 17f60fd..61d3a8a 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -235,7 +235,7 @@ struct JSClass gjs_repo_class = {
     JSCLASS_HAS_PRIVATE |
     JSCLASS_NEW_RESOLVE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     JS_PropertyStub,
     JS_StrictPropertyStub,
     JS_EnumerateStub,
diff --git a/gi/union.cpp b/gi/union.cpp
index 31550cd..82ba852 100644
--- a/gi/union.cpp
+++ b/gi/union.cpp
@@ -312,7 +312,7 @@ struct JSClass gjs_union_class = {
     JSCLASS_HAS_PRIVATE |
     JSCLASS_NEW_RESOLVE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     JS_PropertyStub,
     JS_StrictPropertyStub,
     JS_EnumerateStub,
diff --git a/gjs/byteArray.cpp b/gjs/byteArray.cpp
index f7648ab..57d27a5 100644
--- a/gjs/byteArray.cpp
+++ b/gjs/byteArray.cpp
@@ -58,7 +58,7 @@ struct JSClass gjs_byte_array_class = {
     "ByteArray",
     JSCLASS_HAS_PRIVATE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     (JSPropertyOp)byte_array_get_prop,
     (JSStrictPropertyOp)byte_array_set_prop,
     JS_EnumerateStub,
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index b073c5c..3941d18 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -949,7 +949,7 @@ struct JSClass gjs_importer_class = {
     JSCLASS_NEW_RESOLVE |
     JSCLASS_NEW_ENUMERATE,
     JS_PropertyStub,
-    JS_PropertyStub,
+    JS_DeletePropertyStub,
     JS_PropertyStub,
     JS_StrictPropertyStub,
     (JSEnumerateOp) importer_new_enumerate, /* needs cast since it's the new enumerate signature */
diff --git a/gjs/jsapi-util.cpp b/gjs/jsapi-util.cpp
index 0a58669..67de0f3 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -72,7 +72,7 @@ gjs_get_import_global(JSContext *context)
 
 static JSClass global_class = {
     "GjsGlobal", JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(GJS_GLOBAL_SLOT_LAST),
-    JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_StrictPropertyStub,
+    JS_PropertyStub, JS_DeletePropertyStub, JS_PropertyStub, JS_StrictPropertyStub,
     JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, NULL,
     NULL /* checkAccess */, NULL /* call */, NULL /* hasInstance */, NULL /* construct */, NULL,
     { NULL }
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index 4af8395..3b026ad 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -143,7 +143,7 @@ static struct JSClass gjs_##cname##_class = { \
     JSCLASS_HAS_PRIVATE | \
     JSCLASS_NEW_RESOLVE, \
     JS_PropertyStub, \
-    JS_PropertyStub, \
+    JS_DeletePropertyStub, \
     JS_PropertyStub, \
     JS_StrictPropertyStub, \
     JS_EnumerateStub,\


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