kentyler
04-22-2003, 06:06 AM
It looks like none of the error handling in javascript is included. the following code throws a compiler error if "throw" or "try" is uncommented.
<canvas debug="true">
<script>
<![CDATA[
function factorial(x)
{
// throw new Error("this is a test");
return 2;
}
/* try { var n = -1;
var f = factorial(n);
debug.write(f);
}
catch (ex) {
debug.write(ex);
} */
]]>
</script>
</canvas>
<canvas debug="true">
<script>
<![CDATA[
function factorial(x)
{
// throw new Error("this is a test");
return 2;
}
/* try { var n = -1;
var f = factorial(n);
debug.write(f);
}
catch (ex) {
debug.write(ex);
} */
]]>
</script>
</canvas>