blob: d8ad7994a6f5dea4d07e2d0407074dcc44e811b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
TryInWhile( new TryObject( "hello", ThrowException, true ) );
function TryObject( value, throwFunction, result ) {
this.thrower=throwFunction
}
function ThrowException() { return TryInWhile(1); }
function TryInWhile( object ) {
try {
object.thrower()
} catch ( e ) {
}
}
|