-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid error in type signature for Context.Isolate, NewObjectTemplate & NewFunctionTemplate #152
Conversation
No need to check if the isolate has been terminated, since the caller could always do that on the returned isolate. Using this method is just as safe as holding onto a reference to the Isolate pointer.
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
=======================================
Coverage 96.91% 96.91%
=======================================
Files 12 12
Lines 454 454
=======================================
Hits 440 440
Misses 9 9
Partials 5 5
Continue to review full report at Codecov.
|
An example that highlights the need for this change is that code using NewContext to create the isolate (e.g. |
@dylanahsmith It looks like @rogchap doesn't really care about this project anymore, so in the coming days I'll be pulling all your PRs into my forked branch to - hopefully - continue development there. |
I talked to @rogchap on the v8go slack channel and it isn't that he doesn't care about this project, he has just been preoccupied. For now, I would recommend continuing to contribute changes to this repo and using a fork to pull in any features blocking your work. That is the approach we are taking. In the case of this PR, it isn't a feature that is needed to unblock anything. |
Thanks for the clarification. I didn't realize that there was a Slack channel about this. Sounds good! |
Fixes #108
The above issue linked to #118 (comment) where it was decided that
panic
may be more appropriate and idiomatic Go code in certain casesSpecifically, this makes sense when:
As such, I removed error from the type signature of: