Chromium Code Reviews| Index: test/cctest/test-heap.cc |
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
| index 11b8813063c06bb05c94b39b59c9fc23e28da6de..88557ce2682274901eff3011709d98ee912bd843 100644 |
| --- a/test/cctest/test-heap.cc |
| +++ b/test/cctest/test-heap.cc |
| @@ -1,4 +1,4 @@ |
| -// Copyright 2006-2008 the V8 project authors. All rights reserved. |
| +// Copyright 2011 the V8 project authors. All rights reserved. |
| #include <stdlib.h> |
| @@ -672,7 +672,8 @@ TEST(JSArray) { |
| // Set array length to 0. |
| ok = array->SetElementsLength(Smi::FromInt(0))->ToObjectChecked(); |
| CHECK_EQ(Smi::FromInt(0), array->length()); |
| - CHECK(array->HasFastElements()); // Must be in fast mode. |
| + // Must be in fast mode. |
| + CHECK(array->HasFastElements() || array->HasFastSmiOnlyElements()); |
|
Sven Panne
2011/09/16 09:19:32
This disjunction occurs quite frequently, perhaps
danno
2011/09/21 14:32:04
Done.
|
| // array[length] = name. |
| ok = array->SetElement(0, *name, kNonStrictMode, true)->ToObjectChecked(); |