mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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: https://github.com/nodejs/node/pull/2913
Reviewed-By: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
1 parent
bb0f869f67
commit
8e5843405b
1 file changed
+1
-1
@@ -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; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user