Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2020-05-14 22:03:59 +0300
committerJames M Snell <jasnell@gmail.com>2020-05-31 02:20:02 +0300
commite2cd71536161589dff96adf882970b9a33380f02 (patch)
treec88f653beca27baf69a1e1545ad9d0fe8c7008fb /src/node_serdes.cc
parent56ff1ee55a57b1169dc567f0f51e58a6f2ccda6d (diff)
src: turn AllocatedBuffer into thin wrapper around v8::BackingStore
Alternative to https://github.com/nodejs/node/pull/33381 that reimplements that change on top of moving AllocatedBuffer out of env.h PR-URL: https://github.com/nodejs/node/pull/33291 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'src/node_serdes.cc')
-rw-r--r--src/node_serdes.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_serdes.cc b/src/node_serdes.cc
index 86fb822dd5b..c7877215911 100644
--- a/src/node_serdes.cc
+++ b/src/node_serdes.cc
@@ -206,8 +206,7 @@ void SerializerContext::ReleaseBuffer(const FunctionCallbackInfo<Value>& args) {
std::pair<uint8_t*, size_t> ret = ctx->serializer_.Release();
auto buf = Buffer::New(ctx->env(),
reinterpret_cast<char*>(ret.first),
- ret.second,
- true /* uses_malloc */);
+ ret.second);
if (!buf.IsEmpty()) {
args.GetReturnValue().Set(buf.ToLocalChecked());