Fix test failures introduced by last revision.
R=erik.corry@gmail.com TEST=mjsunit/array-elements-from-array-prototype-chain Review URL: http://codereview.chromium.org/8572004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9996 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
abd895a7cb
commit
f8706ec995
@ -385,9 +385,6 @@ static bool ArrayPrototypeHasNoElements(Heap* heap,
|
|||||||
// This method depends on non writability of Object and Array prototype
|
// This method depends on non writability of Object and Array prototype
|
||||||
// fields.
|
// fields.
|
||||||
if (array_proto->elements() != heap->empty_fixed_array()) return false;
|
if (array_proto->elements() != heap->empty_fixed_array()) return false;
|
||||||
// Hidden prototype
|
|
||||||
array_proto = JSObject::cast(array_proto->GetPrototype());
|
|
||||||
ASSERT(array_proto->elements() == heap->empty_fixed_array());
|
|
||||||
// Object.prototype
|
// Object.prototype
|
||||||
Object* proto = array_proto->GetPrototype();
|
Object* proto = array_proto->GetPrototype();
|
||||||
if (proto == heap->null_value()) return false;
|
if (proto == heap->null_value()) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user