From 0d21e7b3b0633520838289d76fdf44501b97460e Mon Sep 17 00:00:00 2001 From: "christian.plesner.hansen@gmail.com" Date: Tue, 21 Apr 2009 13:28:34 +0000 Subject: [PATCH] review git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1753 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- include/v8.h | 2 ++ src/objects.cc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/v8.h b/include/v8.h index b8b0d49..1013cab 100644 --- a/include/v8.h +++ b/include/v8.h @@ -1052,6 +1052,8 @@ class V8EXPORT Object : public Value { // Note that if the object has an interceptor the property will be set // locally, but since the interceptor takes precedence the local property // will only be returned if the interceptor doesn't return a value. + // + // Note also that this only works for named properties. bool ForceSet(Handle key, Handle value, PropertyAttribute attribs = None); diff --git a/src/objects.cc b/src/objects.cc index 4b05ef3..21b0ee4 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -1820,7 +1820,8 @@ Object* JSObject::IgnoreAttributesAndSetLocalProperty( if (value == result->GetConstantFunction()) return value; // Only replace the function if necessary. return ConvertDescriptorToFieldAndMapTransition(name, value, attributes); - case CALLBACKS: case INTERCEPTOR: + case CALLBACKS: + case INTERCEPTOR: // Override callback in clone return ConvertDescriptorToField(name, value, attributes); case CONSTANT_TRANSITION: -- 2.7.4