typed arrays: fix missing type in SizeOfArrayElementForType()

When Mikael Bourges-Sevenier added support for Uint8ClampedArray in 67fc1da,
the new type was not added to SizeOfArrayElementForType().
This commit is contained in:
Dean McNamee 2012-12-07 22:02:11 +01:00 committed by Ben Noordhuis
parent ba00fb0199
commit 1c265c54a2

View File

@ -829,6 +829,7 @@ int SizeOfArrayElementForType(v8::ExternalArrayType type) {
switch (type) {
case v8::kExternalByteArray:
case v8::kExternalUnsignedByteArray:
case v8::kExternalPixelArray:
return 1;
case v8::kExternalShortArray:
case v8::kExternalUnsignedShortArray: