Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index dc1f90c0e285d6a824a6d507d52878d24e3863d3..fb5c3430f2d70c48e171829c8a2e2bec1753a89d 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2705,6 +2705,21 @@ Local<Value> v8::Object::Get(uint32_t index) { |
} |
+PropertyAttribute v8::Object::GetPropertyAttribute(v8::Handle<Value> key) { |
+ i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
+ ON_BAILOUT(isolate, "v8::Object::GetPropertyAttribute()", |
+ return static_cast<PropertyAttribute>(NONE)); |
+ ENTER_V8(isolate); |
+ i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
+ i::Handle<i::Object> key_obj = Utils::OpenHandle(*key); |
+ EXCEPTION_PREAMBLE(isolate); |
+ PropertyAttributes result = |
+ self->TryGetPropertyAttribute(key_obj, &has_pending_exception); |
Mads Ager (chromium)
2011/07/15 07:25:51
Could you put this one in handles.[h,cc] as is don
|
+ EXCEPTION_BAILOUT_CHECK(isolate, static_cast<PropertyAttribute>(NONE)); |
+ return static_cast<PropertyAttribute>(result); |
+} |
+ |
+ |
Local<Value> v8::Object::GetPrototype() { |
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
ON_BAILOUT(isolate, "v8::Object::GetPrototype()", |