forked from rogchap/v8go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some missing error propagation (rogchap#179)
* Use MaybeLocal ToLocal instead of IsEmpty and ToLocalChecked (closes rogchap#177, merged in): Using a ToLocal makes it clearer that the error is being handled which makes uses of ToLocalChecked stand out more as places where we are missing error handling. * Add valueResult to get the value and error from C results (closes rogchap#178, merged in): * Remove dead code path in getError to handle non-errors * Rename getError to newJSError and move to errors.go * Add some missing error propagation: * Propogate errors in ObjectTemplate.NewInstance * Propogate new v8 string errors in Object.Get * Propagate NewPromiseResolver error * Propagate promise errors from C to Go * Remove unused Exception*Error C functions * Propagate v8::FunctionTemplate::GetFunction error from C to Go * Propagate new v8 string errors in Context.RunScript * Propagate NewValue errors for string and big.Int type values * Propagate v8::Value::ToObject error from C to Go * Propagate v8::Value::ToDetailString error from C to Go * Add a change log entry for adding missing error propagation
- Loading branch information
1 parent
9d9805c
commit fde4a6a
Showing
12 changed files
with
282 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.