| Index: test/cctest/test-api.cc
|
| ===================================================================
|
| --- test/cctest/test-api.cc (revision 15840)
|
| +++ test/cctest/test-api.cc (working copy)
|
| @@ -2603,6 +2603,7 @@
|
| Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New(1024);
|
| CheckInternalFieldsAreZero(ab);
|
| CHECK_EQ(1024, static_cast<int>(ab->ByteLength()));
|
| + CHECK_NE(0, ab->BaseAddress());
|
| CHECK(!ab->IsExternal());
|
| HEAP->CollectAllGarbage(i::Heap::kNoGCFlags);
|
|
|
| @@ -2612,6 +2613,7 @@
|
| CHECK_EQ(1024, static_cast<int>(ab_contents.ByteLength()));
|
| uint8_t* data = static_cast<uint8_t*>(ab_contents.Data());
|
| ASSERT(data != NULL);
|
| + CHECK_EQ(data, ab->BaseAddress());
|
| env->Global()->Set(v8_str("ab"), ab);
|
|
|
| v8::Handle<v8::Value> result = CompileRun("ab.byteLength");
|
|
|