Make it compile
This commit is contained in:
parent
903dc89240
commit
f73d22dbb7
@ -51,12 +51,12 @@ void uWS_free(const FunctionCallbackInfo<Value> &args) {
|
|||||||
Local<Object> exports = args.Holder();
|
Local<Object> exports = args.Holder();
|
||||||
|
|
||||||
/* See if we even have free anymore */
|
/* See if we even have free anymore */
|
||||||
if (exports->Get(String::NewFromUtf8(args.GetIsolate(), "free", NewStringType::kNormal).ToLocalChecked()) == Undefined(args.GetIsolate())) {
|
if (exports->Get(args.GetIsolate()->GetCurrentContext(), String::NewFromUtf8(args.GetIsolate(), "free", NewStringType::kNormal).ToLocalChecked()).ToLocalChecked() == Undefined(args.GetIsolate())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Once we free uWS we remove the uWS.free function from exports */
|
/* Once we free uWS we remove the uWS.free function from exports */
|
||||||
exports->Set(args.GetIsolate()->GetCurrentContext(), String::NewFromUtf8(args.GetIsolate(), "free", NewStringType::kNormal).ToLocalChecked(), Undefined(args.GetIsolate()));
|
exports->Set(args.GetIsolate()->GetCurrentContext(), String::NewFromUtf8(args.GetIsolate(), "free", NewStringType::kNormal).ToLocalChecked(), Undefined(args.GetIsolate())).ToChecked();
|
||||||
|
|
||||||
/* We get the External holding perContextData */
|
/* We get the External holding perContextData */
|
||||||
PerContextData *perContextData = (PerContextData *) Local<External>::Cast(args.Data())->Value();
|
PerContextData *perContextData = (PerContextData *) Local<External>::Cast(args.Data())->Value();
|
||||||
|
Loading…
Reference in New Issue
Block a user