The following javascript code prints "stack is undefined" on iOS 6.1 / Xcode 5 using Cordova 3.4, but it works fine (prints nothing) using Cordova on Android. It also works fine in a web browser. What's so different about iOS?
if (typeof new Error().stack == 'undefined') {
console.log("stack is undefined.");
}
What gives?