Javascript v8 object to string exceptions improvement
This commit is contained in:
parent
00190c484f
commit
d32943b2a9
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue