Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 6be77a9972a477e8ff498a558bc82ccb425bf1dc..bde802fdef0d3ebae839b8c85f96d6e3424d30fb 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -774,7 +774,8 @@ enum TypedArrayId { |
ARRAY_ID_UINT32 = 5, |
ARRAY_ID_INT32 = 6, |
ARRAY_ID_FLOAT32 = 7, |
- ARRAY_ID_FLOAT64 = 8 |
+ ARRAY_ID_FLOAT64 = 8, |
+ ARRAY_ID_UINT8C = 9 |
}; |
@@ -831,6 +832,11 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayInitialize) { |
arrayType = kExternalDoubleArray; |
elementSize = 8; |
break; |
+ case ARRAY_ID_UINT8C: |
+ elementsKind = EXTERNAL_PIXEL_ELEMENTS; |
+ arrayType = kExternalPixelArray; |
+ elementSize = 1; |
+ break; |
default: |
UNREACHABLE(); |
return NULL; |