protected:
void Parse(unsigned char* buf, int len) {
- HandleScope scope(node_isolate);
+ HandleScope handle_scope(env()->isolate());
+ Context::Scope context_scope(env()->context());
struct hostent* host;
protected:
void Parse(unsigned char* buf, int len) {
- HandleScope scope(node_isolate);
+ HandleScope handle_scope(env()->isolate());
+ Context::Scope context_scope(env()->context());
struct hostent* host;
protected:
void Parse(unsigned char* buf, int len) {
- HandleScope scope(node_isolate);
-
+ HandleScope handle_scope(env()->isolate());
+ Context::Scope context_scope(env()->context());
struct hostent* host;
int status = ares_parse_a_reply(buf, len, &host, NULL, NULL);
protected:
void Parse(unsigned char* buf, int len) {
- HandleScope scope(node_isolate);
+ HandleScope handle_scope(env()->isolate());
+ Context::Scope context_scope(env()->context());
struct ares_mx_reply* mx_start;
int status = ares_parse_mx_reply(buf, len, &mx_start);
protected:
void Parse(unsigned char* buf, int len) {
+ HandleScope handle_scope(env()->isolate());
+ Context::Scope context_scope(env()->context());
struct hostent* host;
int status = ares_parse_ns_reply(buf, len, &host);
protected:
void Parse(unsigned char* buf, int len) {
+ HandleScope handle_scope(env()->isolate());
+ Context::Scope context_scope(env()->context());
struct ares_txt_reply* txt_out;
int status = ares_parse_txt_reply(buf, len, &txt_out);
protected:
void Parse(unsigned char* buf, int len) {
- HandleScope scope(node_isolate);
+ HandleScope handle_scope(env()->isolate());
+ Context::Scope context_scope(env()->context());
struct ares_srv_reply* srv_start;
int status = ares_parse_srv_reply(buf, len, &srv_start);
protected:
void Parse(unsigned char* buf, int len) {
- HandleScope scope(node_isolate);
+ HandleScope handle_scope(env()->isolate());
+ Context::Scope context_scope(env()->context());
ares_naptr_reply* naptr_start;
int status = ares_parse_naptr_reply(buf, len, &naptr_start);
protected:
void Parse(struct hostent* host) {
- HandleScope scope(node_isolate);
-
+ HandleScope handle_scope(env()->isolate());
+ Context::Scope context_scope(env()->context());
this->CallOnComplete(HostentToNames(host));
}
};