Pārlūkot izejas kodu

allow enumeration of methods

-> actually our properties said this shouldn't be possible
-> however v8js_named_property_enumerator enumerated the methods
-> older V8 versions listed the methods anyways
-> V8 6.3 started to not list the method now

refs #326
Stefan Siegl 7 gadi atpakaļ
vecāks
revīzija
8e8306ae3e
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      v8js_object_export.cc

+ 1 - 2
v8js_object_export.cc

@@ -664,8 +664,7 @@ v8::Local<v8::Value> v8js_named_property_callback(v8::Local<v8::String> property
 				}
 			}
 		} else if (callback_type == V8JS_PROP_QUERY) {
-			// methods are not enumerable
-			ret_value = V8JS_UINT(v8::ReadOnly|v8::DontEnum|v8::DontDelete);
+			ret_value = V8JS_UINT(v8::ReadOnly|v8::DontDelete);
 		} else if (callback_type == V8JS_PROP_SETTER) {
 			ret_value = set_value; // lie.  this field is read-only.
 		} else if (callback_type == V8JS_PROP_DELETER) {