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:
authorTrevor Norris <trev.norris@gmail.com>2016-04-16 12:07:25 +0300
committerTrevor Norris <trev.norris@gmail.com>2016-05-24 23:36:47 +0300
commitddc19be6de1ba263d9c175b2760696e7b9918b25 (patch)
tree4da6925cc2183cc62e4386d0ecca19b0bf0a984c /src/js_stream.h
parente03c32696e1c429c524ccdafe47879196b3ed630 (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.h')
-rw-r--r--src/js_stream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_stream.h b/src/js_stream.h
index 1a8902af466..08d1604ac53 100644
--- a/src/js_stream.h
+++ b/src/js_stream.h
@@ -8,7 +8,7 @@
namespace node {
-class JSStream : public StreamBase, public AsyncWrap {
+class JSStream : public AsyncWrap, public StreamBase {
public:
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,