{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/nan/issues/470","labels_url":"https://api.github.com/repos/nodejs/nan/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/nan/issues/470/comments","events_url":"https://api.github.com/repos/nodejs/nan/issues/470/events","html_url":"https://github.com/nodejs/nan/issues/470","id":107502659,"number":470,"title":"Unable to call Nan::New for Nan::Global under v0.10.x","user":{"login":"zcbenz","id":639601,"avatar_url":"https://avatars.githubusercontent.com/u/639601?v=3","gravatar_id":"","url":"https://api.github.com/users/zcbenz","html_url":"https://github.com/zcbenz","followers_url":"https://api.github.com/users/zcbenz/followers","following_url":"https://api.github.com/users/zcbenz/following{/other_user}","gists_url":"https://api.github.com/users/zcbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/zcbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcbenz/subscriptions","organizations_url":"https://api.github.com/users/zcbenz/orgs","repos_url":"https://api.github.com/users/zcbenz/repos","events_url":"https://api.github.com/users/zcbenz/events{/privacy}","received_events_url":"https://api.github.com/users/zcbenz/received_events","type":"User","site_admin":true},"labels":[{"url":"https://api.github.com/repos/nodejs/nan/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/nodejs/nan/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/nodejs/nan/milestones/3","html_url":"https://github.com/nodejs/nan/milestones/2.1","labels_url":"https://api.github.com/repos/nodejs/nan/milestones/3/labels","id":1248627,"number":3,"title":"2.1","description":null,"creator":{"login":"kkoopa","id":4103081,"avatar_url":"https://avatars.githubusercontent.com/u/4103081?v=3","gravatar_id":"","url":"https://api.github.com/users/kkoopa","html_url":"https://github.com/kkoopa","followers_url":"https://api.github.com/users/kkoopa/followers","following_url":"https://api.github.com/users/kkoopa/following{/other_user}","gists_url":"https://api.github.com/users/kkoopa/gists{/gist_id}","starred_url":"https://api.github.com/users/kkoopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkoopa/subscriptions","organizations_url":"https://api.github.com/users/kkoopa/orgs","repos_url":"https://api.github.com/users/kkoopa/repos","events_url":"https://api.github.com/users/kkoopa/events{/privacy}","received_events_url":"https://api.github.com/users/kkoopa/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":0,"state":"open","created_at":"2015-08-10T17:11:27Z","updated_at":"2015-09-21T19:29:11Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-09-21T12:40:18Z","updated_at":"2015-10-02T11:54:45Z","closed_at":null,"body":"Example code:\r\n\r\n```c++\r\nNan::Global<v8::String> val(Nan::New<v8::String>(\"test\"));\r\nNan::New(val);\r\n```"},"comment":{"url":"https://api.github.com/repos/nodejs/nan/issues/comments/144997829","html_url":"https://github.com/nodejs/nan/issues/470#issuecomment-144997829","issue_url":"https://api.github.com/repos/nodejs/nan/issues/470","id":144997829,"user":{"login":"koistya","id":197134,"avatar_url":"https://avatars.githubusercontent.com/u/197134?v=3","gravatar_id":"","url":"https://api.github.com/users/koistya","html_url":"https://github.com/koistya","followers_url":"https://api.github.com/users/koistya/followers","following_url":"https://api.github.com/users/koistya/following{/other_user}","gists_url":"https://api.github.com/users/koistya/gists{/gist_id}","starred_url":"https://api.github.com/users/koistya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koistya/subscriptions","organizations_url":"https://api.github.com/users/koistya/orgs","repos_url":"https://api.github.com/users/koistya/repos","events_url":"https://api.github.com/users/koistya/events{/privacy}","received_events_url":"https://api.github.com/users/koistya/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T11:54:45Z","updated_at":"2015-10-02T11:54:45Z","body":"There is also:\r\n\r\n**error C2995: 'v8::Local<T> _NanEnsureLocal(v8::Local<T>)' : function template has already been defined**\r\n\r\n```\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(263): error C2995: 'v8::Local<T> _NanEnsureLocal(v8::Local<T>)' : function template has already been defined [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\n          C:\\Projects\\contextify\\node_modules\\nan\\nan.h(256) : see declaration of '_NanEnsureLocal'\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(661): error C3083: 'smalloc': the symbol to the left of a '::' must be a type [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(661): error C2039: 'FreeCallback' : is not a member of 'node' [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(661): error C2061: syntax error : identifier 'FreeCallback' [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(665): error C2065: 'callback' : undeclared identifier [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(665): error C2065: 'hint' : undeclared identifier [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(672): error C2665: 'node::Buffer::New' : none of the 4 overloads could convert all the argument types [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\n          C:\\Users\\Konstantin\\.node-gyp\\4.1.1\\include\\node\\node_buffer.h(43): could be 'v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)'\r\n          C:\\Users\\Konstantin\\.node-gyp\\4.1.1\\include\\node\\node_buffer.h(31): or       'v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)'\r\n          while trying to match the argument list '(v8::Isolate *, const char *, uint32_t)'\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(676): error C2664: 'v8::Local<v8::Object>::Local(const v8::Local<v8::Object> &)' : cannot convert argument 1 from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\n          Reason: cannot convert from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object>'\r\n          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(683): error C2039: 'Use' : is not a member of 'node::Buffer' [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\nC:\\Projects\\contextify\\node_modules\\nan\\nan.h(683): error C3861: 'Use': identifier not found [C:\\Projects\\contextify\\build\\contextify.vcxproj]\r\n```"}}