Javascript v8 object to string exceptions improvement

This commit is contained in:
William S Fulton 2022-09-18 13:12:51 +01:00
commit d32943b2a9
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ catch(error){
if(error == -1) { if(error == -1) {
console.log("t.hosed() did not throw"); console.log("t.hosed() did not throw");
} else { } else {
console.log("successfully caught throw in Test::hosed() :" + error + " " + error.code + " " + error.msg); console.log("successfully caught throw in Test::hosed() :" + error);
} }
} }

View file

@ -97,7 +97,7 @@ SWIGINTERN void SWIG_V8_Raise(const char *msg) {
} }
SWIGINTERN void SWIG_V8_Raise(SWIGV8_VALUE obj, const char *msg) { SWIGINTERN void SWIG_V8_Raise(SWIGV8_VALUE obj, const char *msg) {
SWIGV8_THROW_EXCEPTION(obj); SWIGV8_THROW_EXCEPTION(v8::Exception::Error(SWIGV8_TO_STRING(obj)));
} }