Conversation
It turns out `HandleScope::New` doesn't actually exist, so I'm not sure exactly how that should happen. Side note: Maybe it should, because I'm getting the error "Entering the V8 API without proper locking in place" when I just construct `HandleScope` so I think I'm missing something important that could be hidden using a factory function, but I don't know because I don't know why I'm running into this issue. =)
NickNaso
left a comment
There was a problem hiding this comment.
Just some suggestions.
@gabrielschulhof @mhdawson @kfarnung Someone of you have some time to review this PR?
|
|
||
| ```cpp | ||
| HandleScope HandleScope::New(Napi:Env env); | ||
| HandleScope::HandleScope(Napi:Env env); |
|
|
||
| ```cpp | ||
| HandleScope HandleScope::New(napi_env env, napi_handle_scope scope); | ||
| HandleScope::HandleScope(Napi::Env env, Napi::HandleScope scope); |
There was a problem hiding this comment.
HandleScope(Napi::Env env, Napi::HandleScope scope);| @@ -15,10 +15,10 @@ the section titled (Object lifetime management)[object_lifetime_management]. | |||
| Creates a new handle scope. | |||
There was a problem hiding this comment.
I think we should say "Creates a new handle scope on the stack"
| @@ -28,11 +28,11 @@ Returns a new HandleScope | |||
| Creates a new handle scope. | |||
|
@rivertam thanks for catching that. You are correct that New does not exist and HandleScopes should be declared on the stack as opposed to allocated. For example: |
|
@rivertam made a few additional suggestions, if you can update PR to include those I'll go ahead and land. |
|
@rivertam do you have time to update this PR based on the comments? |
|
No I'm sorry. I've been working like crazy. Might be able to get to it next week sometime, but it's probably faster and more effective if you just take it from here. |
It turns out `HandleScope::New` doesn't actually exist, fix up doc. PR-URL: #287 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@NickNaso.local>
|
Landed as 86be13a |
It turns out `HandleScope::New` doesn't actually exist, fix up doc. PR-URL: nodejs/node-addon-api#287 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@NickNaso.local>
It turns out `HandleScope::New` doesn't actually exist, fix up doc. PR-URL: nodejs/node-addon-api#287 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@NickNaso.local>
It turns out `HandleScope::New` doesn't actually exist, fix up doc. PR-URL: nodejs/node-addon-api#287 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@NickNaso.local>
It turns out `HandleScope::New` doesn't actually exist, fix up doc. PR-URL: nodejs/node-addon-api#287 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@NickNaso.local>
It turns out
HandleScope::Newdoesn't actually exist, so I'm not sure exactly how that happened.Side note: Maybe it should, because I'm getting the error "Entering the V8 API without proper locking in place" when I just construct
HandleScopeso I think I'm missing something important that could be hidden using a factory function, but I don't know because I don't know why I'm running into this issue. =)