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:
Oliver Buchtala 2012-09-08 01:11:11 +00:00
commit 70383a1b61

View file

@ -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) {