diff --git a/src/node_url.cc b/src/node_url.cc index 92cb8efbb8..7f21051c54 100644 --- a/src/node_url.cc +++ b/src/node_url.cc @@ -636,8 +636,8 @@ namespace url { const char* input, const size_t len, enum url_parse_state override, - Local base_obj, - Local context_obj, + Local base_obj, + Local context_obj, Local cb) { Isolate* isolate = env->isolate(); Local context = env->context(); @@ -654,9 +654,9 @@ namespace url { struct url_data base; struct url_data url; if (context_obj->IsObject()) - HarvestContext(env, &url, context_obj); + HarvestContext(env, &url, context_obj.As()); if (has_base) - HarvestBase(env, &base, base_obj); + HarvestBase(env, &base, base_obj.As()); std::string buffer; url.scheme.reserve(len); @@ -1321,8 +1321,8 @@ namespace url { Parse(env, args.This(), *input, input.length(), override, - args[2].As(), - args[3].As(), + args[2], + args[3], args[4].As()); }