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: var ironman = { name: "Hejlik", date: new Date() } with (ironman) { date.getMonth(); !(function( ) { date.getYear(); })(); } the expression date.getYear() is resolved in wrong way. The object date is treated as global variable.
Fixed in web-main.
Integrated into 'main-silver', will be available in build *201402110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/dbd0a4ff6b32 User: Petr Pisl <ppisl@netbeans.org> Log: #241640 - Objects in a function inside with block