| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: Catching objects with try/catch/finally statement |
| description: Catching Number |
| if (e!==13) $ERROR('#1: Exception ===13. Actual: Exception ==='+ e ); |
| if (e!==13) $ERROR('#2: Exception ===13. Actual: Exception ==='+ e ); |
| if (e!==13) $ERROR('#3: Exception ===13. Actual: Exception ==='+ e ); |
| if (e!==13) $ERROR('#4: Exception ===13. Actual: Exception ==='+ e ); |
| if (e!==2.13) $ERROR('#5: Exception ===2.13. Actual: Exception ==='+ e ); |
| if (e!==ex) $ERROR('#6: Exception ===2/3. Actual: Exception ==='+ e ); |
| assert.sameValue(e, NaN, "e is NaN"); |
| if (e!==+Infinity) $ERROR('#8: Exception ===+Infinity. Actual: Exception ==='+ e ); |
| if (e!==-Infinity) $ERROR('#9: Exception ===-Infinity. Actual: Exception ==='+ e ); |
| if (e!==+0) $ERROR('#10: Exception ===+0. Actual: Exception ==='+ e ); |
| if (e!==-0) $ERROR('#11: Exception ===-0. Actual: Exception ==='+ e ); |