Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10538] iOS: CommonJS: invalid code causes crash with EXC_CRASH (SIGABRT)

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.0.2, Release 2.1.0, Release 2.1.2
Fix Version/sn/a
ComponentsiOS
Labelscore, qe-ios082012
ReporterDustin Hyde
AssigneeUnknown
Created2012-08-21T16:31:16.000+0000
Updated2018-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

FileDateSize
log.txt2012-08-21T16:31:16.000+00002144
MyProject_2012-08-21-160315_QEs-iPhone.crash2012-08-21T16:31:17.000+000029363

Comments

No comments

JSON Source