Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13336] CodeProcessor: Trying to dereference a property of null/undefined should throw a recoverable exception

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-03T05:53:35.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2013 Sprint 07 JS, 2013 Sprint 07
ComponentsCode Processor
Labelsn/a
ReporterBryan Hughes
AssigneeBryan Hughes
Created2013-04-03T05:49:59.000+0000
Updated2013-05-10T06:06:30.000+0000

Description

Trying to dereference a property of null or undefined throws an unrecoverable exception, but it should be recoverable.

Comments

  1. Shyam Bhadauria 2013-05-09

    Please provide steps to test it,if feasible.
  2. Bryan Hughes 2013-05-09

       var x;
       x.foo;
       console.log('the bug is fixed');
       
    Run this code using the code processor from the command line. You should see a line in the output (before the results) that includes "the bug is fixed".
  3. Shyam Bhadauria 2013-05-10

    Run the given code through codeprocessor in console.It gave the expected output line : "info: program output [log]: the bug is fixed".So closing the bug. Used Titanium Code Processor v1.0.0

JSON Source