More attempted error handling
This was SVN commit r769.
This commit is contained in:
1 parent
1d44976b35
commit
1e40ed1543
17 files changed
+340
-149
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user