[TIMOB-11889] CodeProcessor: Context stack is not established correctly inside of queued functions
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-01T01:17:20.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.1, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 JS |
Components | Code Processor |
Labels | n/a |
Reporter | Bryan Hughes |
Assignee | Praveen Innamuri |
Created | 2012-11-28T23:47:41.000+0000 |
Updated | 2017-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
}
});
Closing ticket as Code Processor is no longer supported.