Skip to content

Commit 8e58434

Browse files
trevnorrisFishrock123
authored andcommitted
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" PR-URL: #2913 Reviewed-By: Fedor Indutny <[email protected]>
1 parent bb0f869 commit 8e58434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_internals.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ NODE_DEPRECATED("Use ThrowUVException(isolate)",
230230

231231
class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
232232
public:
233-
ArrayBufferAllocator() { }
233+
ArrayBufferAllocator() : env_(nullptr) { }
234234

235235
inline void set_env(Environment* env) { env_ = env; }
236236

0 commit comments

Comments
 (0)