Support Node.js 14

This commit is contained in:
Alex Hultman 2020-04-23 21:57:38 +02:00
parent 83bee418d2
commit bd9007eee0
4 changed files with 15 additions and 4 deletions

View file

@ -114,7 +114,7 @@ void uWS_App_ws(const FunctionCallbackInfo<Value> &args) {
CallJS(isolate, Local<Function>::New(isolate, messagePf), 3, argv);
/* Important: we clear the ArrayBuffer to make sure it is not invalidly used after return */
messageArrayBuffer->Neuter();
NeuterArrayBuffer(messageArrayBuffer);
};
}
@ -173,7 +173,7 @@ void uWS_App_ws(const FunctionCallbackInfo<Value> &args) {
delete perSocketData->socketPf;
/* Again, here we clear the buffer to avoid strange bugs */
messageArrayBuffer->Neuter();
NeuterArrayBuffer(messageArrayBuffer);
};
app->template ws<PerSocketData>(std::string(pattern.getString()), std::move(behavior));