Skip to content

Commit

Permalink
Fix GetFromPersistent type, which should be Value
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Jul 4, 2015
1 parent 1323765 commit e777948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nan.h
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ class Callback {
New(persistentHandle)->Get(New(key).ToLocalChecked()));
}

NAN_INLINE v8::Local<v8::Object>
NAN_INLINE v8::Local<v8::Value>
GetFromPersistent(const v8::Local<v8::String> &key) const {
EscapableHandleScope scope;
return scope.Escape(New(persistentHandle)->Get(key));
Expand Down

0 comments on commit e777948

Please sign in to comment.