Project: titanium
Issue TIMOB-17448: iOS: error when commonjs module exports certain types
h2. problem If a commonjs module assigns anything other than the following types to {{module.exports}}, the app crashes with no output to the console: * Function * Object * String For example, returning any of the following in {{module.exports}} will crash the app: * Number * Boolean * null * undefined * NaN This issue does not seem to appear on Android. h2. test case Creating the following simple app will crash the simulator when it is run. h3. foo.js {code:javascript} module.exports = 123; // the following cases will also crash // module.exports = true; // module.exports = undefined; // module.exports = null; {code} h3. app.js {code:javascript} require('foo'); {code}
Story points: 5