1
0
Fork 0

If setting a secure property fails, it will force a fallback to prevent performance degredation due to exceptions

closure/master
Mike Gerwitz 2010-12-22 22:17:07 -05:00
parent 98fd1e7c7c
commit a93ff61bde
1 changed files with 4 additions and 0 deletions

View File

@ -493,6 +493,10 @@ function getDefineSecureProp()
}
catch ( e )
{
// let's not have this happen again, as repeatedly throwing
// exceptions will do nothing but slow down the system
exports.secureFallback( true );
// if there's an error (ehem, IE8), fall back
fallback( obj, prop, value );
}