I put the following code into closure compiler on advanced mode:
var obj = (function() {
/** @constructor */
function H(a) {
this.a = a
}
var h = new H(1);
h.b=1
return h
})();
The result I get back is:
(function() {
var a = new function() {
}(1);
a.a = 1;
return a;
})();
Why is it ignoring the change I make to the object h.b=1
?