appcelerator/titanium_mobile — pull request #973 by sptramer (2011-12-14 01:15:00+00:00)
Title: [TIMOB-6572] Don't inject the alert() function - bind it

Evaluating scripts outside of begin/end eval causes issues with the debugger hooks in certain multicontext situations, and we shouldn't be "evaluating" this function anyway; it should be a direct binding into the kroll context.

This pull request will need to be tested both against the bug and a basic `alert()` use case.