Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13116] MobileWeb: toString is broken on objects without a class name

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-19T18:59:46.000+0000
Affected Version/sRelease 2.1.4
Fix Version/sRelease 3.1.0, 2013 Sprint 06 JS, 2013 Sprint 06
ComponentsMobileWeb
Labelsqe-port
ReporterBryan Hughes
AssigneeBryan Hughes
Created2013-03-19T18:24:52.000+0000
Updated2013-05-08T06:58:53.000+0000

Description

toString is broken on objects without a classname
var x = require('Ti/_/declare')({ 
    constructor: function(args) {
        console.dir(args);
    }, 
    properties: {
        bar: 20
    }
});
var y = new x();
console.log(y.toString());

Comments

  1. Bryan Hughes 2013-03-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/3989
  2. Shyam Bhadauria 2013-05-08

    It is not breaking now.App is rendering without error on web. Verification environment details- SDK - 3.1.0.GA Appcelerator studio - 3.1.1.201305031846

JSON Source