Partially revert "[node] Fix memory test hanging after GlyphAtlas refactoring (#8394)"

This reverts commit 5700c99e55.
This commit is contained in:
John Firebaugh
2017-07-19 14:25:59 -07:00
parent cebc3c8d4b
commit 9d22ac8281
2 changed files with 0 additions and 16 deletions

View File

@@ -122,19 +122,9 @@ void NodeRequest::HandleCallback(const Nan::FunctionCallbackInfo<v8::Value>& inf
}
void NodeRequest::Execute() {
asyncExecute = std::make_unique<mbgl::util::AsyncTask>([this] { doExecute(); Unref(); });
asyncExecute->send();
Ref();
}
void NodeRequest::doExecute() {
Nan::HandleScope scope;
v8::Local<v8::Value> argv[] = { handle() };
Nan::MakeCallback(Nan::To<v8::Object>(target->handle()->GetInternalField(1)).ToLocalChecked(), "request", 1, argv);
asyncExecute.reset();
}
NodeRequest::NodeAsyncRequest::NodeAsyncRequest(NodeRequest* request_) : request(request_) {