Revision: 11950
Author: [email protected]
Date: Thu Jun 28 09:40:16 2012
Log: ARRAY_SIZE is not available on Linux-shared.
[email protected]
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10718008
http://code.google.com/p/v8/source/detail?r=11950
Modified:
/branches/bleeding_edge/src/d8.cc
=======================================
--- /branches/bleeding_edge/src/d8.cc Thu Jun 28 09:29:53 2012
+++ /branches/bleeding_edge/src/d8.cc Thu Jun 28 09:40:16 2012
@@ -493,7 +493,7 @@
ASSERT(!try_catch.HasCaught() && array_buffer->IsFunction());
Handle<Value> buffer_args[] = { Uint32::New(byteLength) };
Handle<Value> result =
Handle<Function>::Cast(array_buffer)->NewInstance(
- ARRAY_SIZE(buffer_args), buffer_args);
+ 1, buffer_args);
if (try_catch.HasCaught()) return result;
buffer = result->ToObject();
}
@@ -566,7 +566,7 @@
Handle<Value> construct_args[] = {
buffer, Uint32::New(byteOffset), Uint32::New(length)
};
- return constructor->NewInstance(ARRAY_SIZE(construct_args),
construct_args);
+ return constructor->NewInstance(3, construct_args);
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev