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



commit 54a826043f63b48cd451be7ddbb2eb0973652c12
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

 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 8598520..fc8208e 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 51db60a..699f579 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -1773,7 +1773,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 97cbc00..9b93869 100644
--- a/gi/param.cpp
+++ b/gi/param.cpp
@@ -432,7 +432,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 8fc30f8..0890c19 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -224,7 +224,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 4ade66b..01e598a 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 b8514f8..422d9a8 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -995,7 +995,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 949a3fa..d871352 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -71,7 +71,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 d666aaa..83ce3d3 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]