[TIMOB-6080] Android: Add JS error dialog when we encounter runtime errors
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-09T15:54:46.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-45, Release 1.8.0.1 |
Components | Android |
Labels | branch-v8, module_runtime, qe-testadded |
Reporter | Allen Yeung |
Assignee | Allen Yeung |
Created | 2011-11-08T11:02:33.000+0000 |
Updated | 2012-01-09T15:54:46.000+0000 |
Description
In the v8 branch, we currently don't have the runtime error dialog.
You can try the following to trigger an error:
var stream1 = Ti.Filesystem.openStream(Ti.Filesystem.MODE_WRITE, Ti.Filesystem.resourcesDirectory, 'stream_test_in.txt');
var stream2 = Ti.Filesystem.openStream(Ti.Filesystem.MODE_APPEND, Ti.Filesystem.resourcesDirectory, 'stream_test_in.txt');
var resourceFileStream = Ti.Filesystem.openStream(Ti.Filesystem.MODE_READ, Ti.Filesystem.resourcesDirectory, 'stream_test_in.txt');
resourceFileStream.close();
I would also try again with just
resourceFileStream.close();
You should get and undefined error for "resourceFileStream".
Tested with 1.8.0.1.v20111207090257 Xoom (3.2.1) - v8 Samsung Tab 10.1 (3.1) - rhino
Reopening/closing to add/remove labels