Commit 8bb85af3 authored by dslomov@chromium.org's avatar dslomov@chromium.org

Revert "Remove d8 implementation of ArrayBuffer and typed arrays."

This reverts commit r14706.
That commit had a stale change from another change list.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14707 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 0b4c7c8d
This diff is collapsed.
......@@ -676,7 +676,7 @@ bool Runtime::SetupArrayBuffer(Isolate* isolate,
array_buffer->set_backing_store(data);
Handle<Object> byte_length =
isolate->factory()->NewNumberFromSize(allocated_length);
isolate->factory()->NewNumber(static_cast<double>(allocated_length));
CHECK(byte_length->IsSmi() || byte_length->IsHeapNumber());
array_buffer->set_byte_length(*byte_length);
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment