Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 2a4ac228db55e275055c2a61e52fcb8ebd5845af..755293057a3dd3d74a26d4b239ede916b8ba2aa8 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -2078,6 +2078,10 @@ THREADED_TEST(Array) { |
CHECK_EQ(1, arr->Get(0)->Int32Value()); |
CHECK_EQ(2, arr->Get(1)->Int32Value()); |
CHECK_EQ(3, arr->Get(2)->Int32Value()); |
+ array = v8::Array::New(27); |
+ CHECK_EQ(27, array->Length()); |
+ array = v8::Array::New(-27); |
+ CHECK_EQ(0, array->Length()); |
} |