Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 13178ca81006503425946607e20f5eca53c976b7..f5ae10dbe8d7cb70865d99a888863f286b542eaa 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6090,9 +6090,7 @@ i::Handle<i::JSTypedArray> NewTypedArray( |
isolate->factory()->NewExternalArray( |
static_cast<int>(length), array_type, |
static_cast<uint8_t*>(buffer->backing_store()) + byte_offset); |
- i::Handle<i::Map> map = |
- i::JSObject::GetElementsTransitionMap(obj, elements_kind); |
- obj->set_map_and_elements(*map, *elements); |
+ obj->set_elements(*elements); |
return obj; |
} |