Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index ab25562158cb0406b002d1e98735ce955ba0776d..765938ae168aedbf112b055ff3e2f018f79cdd8c 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6101,7 +6101,7 @@ i::Handle<i::JSTypedArray> NewTypedArray( |
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); |
+ i::JSObject::SetMapAndElements(obj, map, elements); |
return obj; |
} |