Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13274] CodeProcessor: toPrimitive/toString/etc can return unknown, and it's never checked

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-29T19:18:32.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
AssigneePraveen Innamuri
Created2013-03-29T05:56:54.000+0000
Updated2017-03-09T18:12:12.000+0000

Description

toPrimitive/toString/etc can return unknown, even if the object is known. This is not currently checked for

Comments

  1. Eric Merriman 2013-06-17

    Please provide test steps and sample code.
  2. Bryan Hughes 2013-06-17

    I don't remember this bug either, but if I were to guess, I would say run the following code:
       var x = [];
       x[new Date()] = 10;
       
    Before the fix, the code processor may have crashed on this code
  3. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source