[TIMOB-5835] iOS: Application error message is not giving the correct line number of an error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-10-27T14:24:08.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-43, Release 1.8.0 |
Components | iOS |
Labels | module_exceptions, qe-testadded |
Reporter | Alan Vaghti |
Assignee | Reggie Seagraves |
Created | 2011-10-23T23:38:05.000+0000 |
Updated | 2014-06-19T12:43:26.000+0000 |
Description
1) Create a new project and place the following in the app.js (notice the syntax error at line 7)
var win = Ti.UI.createWindow({backgroundColor:'white'});
var img = Ti.UI.createImageView({image:'grouch.jpg'});
win.add(img);
win.orientationModes[]; //error
win.open();
2) Place grouch.png in Resources folder
3) Launch the application
Results:
Application Error: Parse error at app.js (line 1)
Error message shows an error at line 1, even though it is at line 7.
Notes:
This was reproducible in 1.7.3.
Attachments
File | Date | Size |
---|---|---|
grouch.jpg | 2011-10-23T23:55:11.000+0000 | 52018 |
parseError.png | 2011-10-23T23:38:05.000+0000 | 77166 |
Tested with 1.8.0.1.v20111114102656 on iPad 2 (4.3.5) iPod Touch (4.0.2) iPhone 4s (5.0) Xoom 3.2.1