From c573c14229fecf67197b0eb0c3ea34d9b25c61fe Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Wed, 16 Sep 2015 12:00:50 -0600 Subject: [PATCH] src: null env_ field from constructor The env_ field in ArrayBufferAllocator needs to be null'd out since it is used during initialization and checked prior to properly being set by set_env(). Fixes: 74178a5 "buffer: construct Uint8Array in JS" --- src/node_internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_internals.h b/src/node_internals.h index 5cc439cc70e7df..bfe4fced26297a 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -230,7 +230,7 @@ NODE_DEPRECATED("Use ThrowUVException(isolate)", class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { public: - ArrayBufferAllocator() { } + ArrayBufferAllocator() : env_(nullptr) { } inline void set_env(Environment* env) { env_ = env; }