This is actually from testcc/test-api.cc (Line 1782) v8::HandleScope scope; LocalContext context; Local<v8::Array> array = v8::Array::New(); CHECK_EQ(0, array->Length()); CHECK(array->Get(0)->IsUndefined()); CHECK(!array->Has(0)); CHECK(array->Get(100)->IsUndefined()); CHECK(!array->Has(100)); array->Set(2, v8_num(7)); CHECK_EQ(3, array->Length());
Here, the Array actually seems to be used in an autoresizing fashion....? -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
