code-dot-org/code-dot-org — pull request #559 by cpirich (2014-11-26 00:11:16+00:00)
Title: webapp console.log, math, and error handling in user program

* feedback.js - removed jquery usage because it breaks when you are using the app outside of dashboard (I was hitting an exception in the dev environment)
* expose 5 Math functions in the droplet toolbox while in webapp
* outputWebappConsole() function added to handle all output to the new console
* implemented and exposed console.log (includes some complex marshaling to handle all of the console.log features + an open-source sprintf function)
* added handleExecutionError() and connected it with both runtime exceptions and parse-time syntax errors in the user's program - errors will appear in the console window and the appropriate line will be highlighted