More attempted error handling

This was SVN commit r769.
This commit is contained in:
Ykkrosh
2004-07-17 17:09:33 +00:00
parent 1d44976b35
commit 1e40ed1543
17 changed files with 340 additions and 149 deletions
@@ -79,7 +79,7 @@ JSBool JSI_Entity::construct( JSContext* cx, JSObject* obj, unsigned int argc, j
{
templateName = g_ScriptingHost.ValueToString( argv[0] );
}
catch( ... )
catch( PSERROR_Scripting_ConversionFailed )
{
*rval = JSVAL_NULL;
return( JS_TRUE );
@@ -100,7 +100,7 @@ JSBool JSI_Entity::construct( JSContext* cx, JSObject* obj, unsigned int argc, j
{
orientation = (float)g_ScriptingHost.ValueToDouble( argv[2] );
}
catch( ... )
catch( PSERROR_Scripting_ConversionFailed )
{
orientation = 0.0f;
}