diff --git a/src/xml_namespace.cc b/src/xml_namespace.cc index 0fc5f9f3..ae865978 100644 --- a/src/xml_namespace.cc +++ b/src/xml_namespace.cc @@ -23,7 +23,7 @@ NAN_METHOD(XmlNamespace::New) { if (!info[0]->IsObject()) return Nan::ThrowError("You must provide a node to attach this namespace to"); - XmlNode* node = Nan::ObjectWrap::Unwrap(info[0].As()); + XmlNode* node = Nan::ObjectWrap::Unwrap(info[0]->ToObject()); v8::String::Utf8Value* prefix = 0; v8::String::Utf8Value* href = 0;