Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12510] BlackBerry: JavaScript exceptions are not always reported properly.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-02-01T02:43:46.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 03 BB, 2013 Sprint 03
ComponentsBlackBerry
Labelsn/a
ReporterJosh Roesslein
AssigneeJosh Roesslein
Created2013-01-31T05:59:01.000+0000
Updated2017-03-08T18:26:31.000+0000

Description

If a JavaScript exception is thrown from a module (ex: require()) the exception is not reported correctly (wrong filename) and no stack is provided. The goal of this ticket is to provide a better report of such exceptions.

Acceptance Test

1. Create a project that contains your main code (app.js) which loads a module using require (ex: require('foo')). 2. Write a module (ex: foo.js) that causes a runtime error. 3. Run the program. 4. Confirm in the output from stderr the line on which the exception was thrown and a stack trace is printed. Confirm filename and location is correct. 5. Edit the module to replace the runtime error with a syntax error. 6. Run the program again. 7. Confirm the line at which the syntax error happened was printed along with a stack that provides the location at which the script was compiled (ex: require() called).

Comments

  1. Josh Roesslein 2013-01-31

    Created pull request [#17](https://github.com/appcelerator/titanium_mobile_blackberry/pull/17) to resolve issue.
  2. Lee Morris 2017-03-08

    Closing ticket as resolved.

JSON Source