diff --git a/src/AppWrapper.h b/src/AppWrapper.h index 1d218e1..f8e03ae 100644 --- a/src/AppWrapper.h +++ b/src/AppWrapper.h @@ -1,7 +1,6 @@ -// App.post and all other methods - requires good templating? // test so that we pass Autobahn with compression/without compression with SSL/without SSL -/* Helping QtCreator */ +#include "App.h" #include #include "Utilities.h" using namespace v8; diff --git a/src/addon.cpp b/src/addon.cpp index cea7f35..00f5d47 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -24,7 +24,7 @@ using namespace v8; /* These two are definitely static */ -std::vector>> nextTickQueue; +std::vector> nextTickQueue; Isolate *isolate; #include "Utilities.h" @@ -35,14 +35,14 @@ Isolate *isolate; /* We are not compatible with Node.js nextTick for performance (and standalone) reasons */ void nextTick(const FunctionCallbackInfo &args) { - nextTickQueue.push_back(Persistent>(isolate, Local::Cast(args[0]))); + nextTickQueue.emplace_back(UniquePersistent(isolate, Local::Cast(args[0]))); } void emptyNextTickQueue(Isolate *isolate) { if (nextTickQueue.size()) { HandleScope hs(isolate); - for (Persistent> &f : nextTickQueue) { + for (UniquePersistent &f : nextTickQueue) { Local::New(isolate, f)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); f.Reset(); } diff --git a/uWebSockets b/uWebSockets index 6718301..2a62218 160000 --- a/uWebSockets +++ b/uWebSockets @@ -1 +1 @@ -Subproject commit 6718301ac9f0385f3146bab70c9fd7d8fa305562 +Subproject commit 2a62218d2a4344255463eeb7b1cbda507f90e86f