[TIMOB-10538] iOS: CommonJS: invalid code causes crash with EXC_CRASH (SIGABRT)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 2.0.2, Release 2.1.0, Release 2.1.2 |
Fix Version/s | n/a |
Components | iOS |
Labels | core, qe-ios082012 |
Reporter | Dustin Hyde |
Assignee | Unknown |
Created | 2012-08-21T16:31:16.000+0000 |
Updated | 2018-02-28T20:04:08.000+0000 |
Description
Invalid CommonJS code causes crash with EXC_CRASH (SIGABRT). It should generate a parse error.
This is not a regression. This does not occur on Android or MobileWeb.
This does not occur outside of CommonJS modules.
Steps to Reproduce:
1. Run sample code:
app.js
require('CrashWindow');
CrashWindow.js
exports.createCrashWindow = function()
{
var win = Ti.UI.createWindow();
win.crash(arg){}; // invalid code
return win;
};
Actual Result:
Crash.
Expected Result:
'Parse' Runtime Error.
Attachments
File | Date | Size |
---|---|---|
log.txt | 2012-08-21T16:31:16.000+0000 | 2144 |
MyProject_2012-08-21-160315_QEs-iPhone.crash | 2012-08-21T16:31:17.000+0000 | 29363 |
No comments