Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11889] CodeProcessor: Context stack is not established correctly inside of queued functions

GitHub Issuen/a
TypeSub-task
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-12-01T01:17:20.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.1, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 JS
ComponentsCode Processor
Labelsn/a
ReporterBryan Hughes
AssigneePraveen Innamuri
Created2012-11-28T23:47:41.000+0000
Updated2017-03-22T17:09:55.000+0000

Description

When a function is queued (for example, callbacks in addEventListener), the context stack is not correctly established before entering the function. For example:
Ti.UI.createLabel().addEventListener('click', function(e) {
    if (1) {
        return; // line in code which throws exception
    }
});

Comments

  1. Lee Morris 2017-03-22

    Closing ticket as Code Processor is no longer supported.

JSON Source