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:
parent
ba00fb0199
commit
1c265c54a2
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user