Commit 6ada4790 authored by verwaest@chromium.org's avatar verwaest@chromium.org

Ensure callbacks transitions are actually followed.

Review URL: https://chromiumcodereview.appspot.com/14371007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14377 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 81b762cc
......@@ -5390,9 +5390,9 @@ MaybeObject* JSObject::DefineFastAccessor(Name* name,
LookupResult result(GetIsolate());
LocalLookup(name, &result);
if (result.IsFound()
&& !result.IsPropertyCallbacks()
&& !result.IsTransition()) return GetHeap()->null_value();
if (result.IsFound() && !result.IsPropertyCallbacks()) {
return GetHeap()->null_value();
}
// Return success if the same accessor with the same attributes already exist.
AccessorPair* source_accessors = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment