Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 9758228b27907444db0e62ef4273fa9214c4574c..70dbeadccadb7f1078cbec8f99215cc02805f45d 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -833,6 +833,8 @@ void Template::SetAccessorProperty( |
v8::Local<FunctionTemplate> setter, |
v8::PropertyAttribute attribute, |
v8::AccessControl access_control) { |
+ // TODO(verwaest): Remove |access_control|. |
+ ASSERT_EQ(v8::DEFAULT, access_control); |
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
ENTER_V8(isolate); |
ASSERT(!name.IsEmpty()); |
@@ -844,8 +846,7 @@ void Template::SetAccessorProperty( |
name, |
getter, |
setter, |
- v8::Integer::New(v8_isolate, attribute), |
- v8::Integer::New(v8_isolate, access_control)}; |
+ v8::Integer::New(v8_isolate, attribute)}; |
TemplateSet(isolate, this, kSize, data); |
} |
@@ -3437,6 +3438,8 @@ void Object::SetAccessorProperty(Local<String> name, |
Handle<Function> setter, |
PropertyAttribute attribute, |
AccessControl settings) { |
+ // TODO(verwaest): Remove |settings|. |
+ ASSERT_EQ(v8::DEFAULT, settings); |
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
ON_BAILOUT(isolate, "v8::Object::SetAccessorProperty()", return); |
ENTER_V8(isolate); |
@@ -3448,8 +3451,7 @@ void Object::SetAccessorProperty(Local<String> name, |
v8::Utils::OpenHandle(*name), |
getter_i, |
setter_i, |
- static_cast<PropertyAttributes>(attribute), |
- settings); |
+ static_cast<PropertyAttributes>(attribute)); |
} |