| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index fc22929fd0ab392744025cea88b1dfbdd09f2330..071b5bb5aa3d741059b66c506aae6476a00718ac 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -3030,6 +3030,9 @@ uint32_t Value::Uint32Value() const {
|
| }
|
|
|
|
|
| +// TODO(verwaest): Remove the attribs argument, since it doesn't make sense for
|
| +// existing properties. Use ForceSet instead to define or redefine properties
|
| +// with specific attributes.
|
| bool v8::Object::Set(v8::Handle<Value> key, v8::Handle<Value> value,
|
| v8::PropertyAttribute attribs) {
|
| i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
|
| @@ -3041,12 +3044,8 @@ bool v8::Object::Set(v8::Handle<Value> key, v8::Handle<Value> value,
|
| i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
|
| EXCEPTION_PREAMBLE(isolate);
|
| has_pending_exception = i::Runtime::SetObjectProperty(
|
| - isolate,
|
| - self,
|
| - key_obj,
|
| - value_obj,
|
| - static_cast<PropertyAttributes>(attribs),
|
| - i::SLOPPY).is_null();
|
| + isolate, self, key_obj, value_obj, i::SLOPPY,
|
| + static_cast<PropertyAttributes>(attribs)).is_null();
|
| EXCEPTION_BAILOUT_CHECK(isolate, false);
|
| return true;
|
| }
|
|
|