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