On second thought, I bet I know why that's happening. It's probably not the ```Runtime.getGlobalObject().get('console')``` line that is causing the problem, but the ```consoleObject.get('debug')``` line after it. If so, this is probably happening because the Titanium API is being stubbed out before the globals are being stubbed out. I knew there was a dependency ordering issue somewhere :). The fix is to make sure the globals are loaded before the Titanium APIs.