Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6080] Android: Add JS error dialog when we encounter runtime errors

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-01-09T15:54:46.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-45, Release 1.8.0.1
ComponentsAndroid
Labelsbranch-v8, module_runtime, qe-testadded
ReporterAllen Yeung
AssigneeAllen Yeung
Created2011-11-08T11:02:33.000+0000
Updated2012-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".

Comments

  1. Natalie Huynh 2011-12-07

    Tested with 1.8.0.1.v20111207090257 Xoom (3.2.1) - v8 Samsung Tab 10.1 (3.1) - rhino
  2. Michael Pettiford 2012-01-09

    Reopening/closing to add/remove labels

JSON Source