projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba00fb0
)
typed arrays: fix missing type in SizeOfArrayElementForType()
author
Dean McNamee
<dean@gmail.com>
Fri, 7 Dec 2012 21:02:11 +0000
(22:02 +0100)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Mon, 17 Dec 2012 16:37:51 +0000
(17:37 +0100)
When Mikael Bourges-Sevenier added support for Uint8ClampedArray in 67fc1da,
the new type was not added to SizeOfArrayElementForType().
src/v8_typed_array.cc
patch
|
blob
|
history
diff --git
a/src/v8_typed_array.cc
b/src/v8_typed_array.cc
index
41211c9
..
f5503a9
100644
(file)
--- a/
src/v8_typed_array.cc
+++ b/
src/v8_typed_array.cc
@@
-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: