[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / bindings / js / SerializedScriptValue.h
index 5c46629..4f4b0cf 100644 (file)
@@ -164,7 +164,7 @@ RefPtr<SerializedScriptValue> SerializedScriptValue::decode(Decoder& decoder)
         return nullptr;
     ASSERT(arrayLength);
 
-    auto arrayBufferContentsArray = std::make_unique<ArrayBufferContentsArray>();
+    auto arrayBufferContentsArray = makeUnique<ArrayBufferContentsArray>();
     while (arrayLength--) {
         unsigned bufferSize;
         if (!decoder.decode(bufferSize))