I was looking at the as3 generated code for an onclick handler which came from this source code<br><br> <button onclick="canvas.test(1)">click me </button><br><br>It looks like this, when compiled in debug mode<br>
<br>public function $lzc$handle_onclick$$args$2Elzx_11_41_$m492 ($lzc$ignore_$1) {<br> try {<br> canvas.test(1);<br> }<br> catch ($lzsc$e) {<br> if ($lzsc$e is Error) {<br> if (lz["$lzsc$thrownError"] === $lzsc$e) {<br>
throw $lzsc$e;<br> };<br> $lzsc$runtime.reportException("args.lzx", 11, $lzsc$e);<br> };<br> throw $lzsc$e;<br> }<br>}<br><br>If some error is thrown in the call to "test", this wrapper looks like it will always catch and then<br>
rethrow it. Is this the expected behavior? I sort of thought we were going to catch and report the error <br>to our debugger, and then discard it rather than rethrowing it, in this case (debugger on)? <br><br>-- <br>Henry Minsky<br>
Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>