diff options
author | Trevor Norris <trev.norris@gmail.com> | 2016-04-16 12:07:25 +0300 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2016-05-24 23:36:47 +0300 |
commit | ddc19be6de1ba263d9c175b2760696e7b9918b25 (patch) | |
tree | 4da6925cc2183cc62e4386d0ecca19b0bf0a984c /src/js_stream.cc | |
parent | e03c32696e1c429c524ccdafe47879196b3ed630 (diff) |
src: inherit first from AsyncWrap
To make sure casting a class of multiple inheritance from a void* to
AsyncWrap succeeds make AsyncWrap the first inherited class.
PR-URL: https://github.com/nodejs/node/pull/6184
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/js_stream.cc')
-rw-r--r-- | src/js_stream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js_stream.cc b/src/js_stream.cc index e81709a8056..6ebdb5a3564 100644 --- a/src/js_stream.cc +++ b/src/js_stream.cc @@ -22,8 +22,8 @@ using v8::Value; JSStream::JSStream(Environment* env, Local<Object> obj, AsyncWrap* parent) - : StreamBase(env), - AsyncWrap(env, obj, AsyncWrap::PROVIDER_JSSTREAM, parent) { + : AsyncWrap(env, obj, AsyncWrap::PROVIDER_JSSTREAM, parent), + StreamBase(env) { node::Wrap(obj, this); MakeWeak<JSStream>(this); } |