michael@0: TryInWhile( new TryObject( "hello", ThrowException, true ) ); michael@0: function TryObject( value, throwFunction, result ) { michael@0: this.thrower=throwFunction michael@0: } michael@0: function ThrowException() TryInWhile(1); michael@0: function TryInWhile( object ) { michael@0: try { michael@0: object.thrower() michael@0: } catch ( e ) { michael@0: } michael@0: }