Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 188047bcc2a81939c2b1af32b0d0634cf2ff7879..8d3018409a22b09574604a3065faf3312bd3b57a 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2757,9 +2757,9 @@ void v8::Object::SetIndexedPropertiesToPixelData(uint8_t* data, int length) { |
return; |
} |
i::Handle<i::PixelArray> pixels = i::Factory::NewPixelArray(length, data); |
- i::Handle<i::Map> slow_map = |
- i::Factory::GetSlowElementsMap(i::Handle<i::Map>(self->map())); |
- self->set_map(*slow_map); |
+ i::Handle<i::Map> pixel_array_map = |
+ i::Factory::GetPixelArrayElementsMap(i::Handle<i::Map>(self->map())); |
+ self->set_map(*pixel_array_map); |
self->set_elements(*pixels); |
} |