Skip to content

Commit 3f2ef02

Browse files
committed
lib: nan compatibility
1 parent f28a6f4 commit 3f2ef02

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"url": "https://github.com/LinusU/node-alias.git"
2222
},
2323
"dependencies": {
24-
"nan": "^1.4.1"
24+
"nan": "^1.9.0"
2525
}
2626
}

src/impl-apple-lion.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ NAN_METHOD(MethodGetVolumeName) {
4646
NanReturnValue(result);
4747
} else {
4848

49-
Local<String> desc = MYCFStringGetV8String(CFErrorCopyDescription(error));
50-
NanThrowError(Exception::Error(desc)->ToObject());
49+
NanThrowError(MYCFStringGetV8String(CFErrorCopyDescription(error)));
5150

5251
NanReturnUndefined();
5352
}

0 commit comments

Comments
 (0)