Enable string exceptions in v8.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
84e5476147
commit
70383a1b61
1 changed files with 2 additions and 2 deletions
|
|
@ -29,8 +29,8 @@ typedef struct {
|
|||
|
||||
%insert(runtime) %{
|
||||
|
||||
void SWIG_V8_Raise(const char* type) {
|
||||
// TODO: throw v8 exception
|
||||
void SWIG_V8_Raise(const char* msg) {
|
||||
v8::ThrowException(v8::Exception::Error(v8::String::New(msg)));
|
||||
}
|
||||
|
||||
void SWIG_V8_exception(int code, const char* msg) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue