Skip to content

Commit

Permalink
[nan2] Use proper v8 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesboeufs committed Aug 27, 2015
1 parent 537bf9f commit 06262d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml_namespace.cc
Expand Up @@ -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<XmlNode>(info[0].As<v8::Object>());
XmlNode* node = Nan::ObjectWrap::Unwrap<XmlNode>(info[0]->ToObject());

v8::String::Utf8Value* prefix = 0;
v8::String::Utf8Value* href = 0;
Expand Down

0 comments on commit 06262d5

Please sign in to comment.