()
| 33 | shouldBe("namedFunctionExpression()", 'globalObject'); |
| 34 | |
| 35 | function throwingFunctionAsException() { |
| 36 | try { |
| 37 | throw function(){ return this; } |
| 38 | } catch(e) { |
| 39 | return e(); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | shouldBe("throwingFunctionAsException()", 'globalObject'); |