Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index c16244038b4b956645bd00214d03dd847d88bbaf..b7dc87e91e6186185acc17dd5697ca344beaedf1 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2749,9 +2749,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); |
} |