This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
have a code: function getInfo() { console.log("getInfo from global"); } function getGlobal() { console.log("global"); } var A = { getInfo: function () { console.log("getInfo from A"); }, getName: function() { console.log("A"); }, B: {}, monitor : 24 }; with(A) { getInfo(); getGlobal(); getName(); B.getName = function () { console.log("B"); | // try invoke cc }; B.createBuf = function () { console.log("create buf"); }; } A.getName(); A.B.getName(); The cc at position marked with char '|' should offer createBuf, but doesn't.
sorry, the cc should be called after this.| at the position. We should get the two methods getName and createBuf in cc.
Fixed at javascript-with branch.
Added to the web-main in the change: http://hg.netbeans.org/web-main/rev/5cbdcccf7a98