Index: test/unittests/value-serializer-unittest.cc |
diff --git a/test/unittests/value-serializer-unittest.cc b/test/unittests/value-serializer-unittest.cc |
index fafba2313e5aa16dca4ba459dcb63b527e8d7c6f..2a85cac96813e13375e59c207fd65342aab6eb19 100644 |
--- a/test/unittests/value-serializer-unittest.cc |
+++ b/test/unittests/value-serializer-unittest.cc |
@@ -111,7 +111,10 @@ class ValueSerializerTest : public TestWithIsolate { |
return Nothing<std::vector<uint8_t>>(); |
} |
AfterEncode(); |
- return Just(serializer.ReleaseBuffer()); |
+ std::pair<uint8_t*, size_t> buffer = serializer.Release(); |
+ std::vector<uint8_t> result(buffer.first, buffer.first + buffer.second); |
+ free(buffer.first); |
+ return Just(std::move(result)); |
} |
template <typename InputFunctor, typename EncodedDataFunctor> |