Version: 0.3.6
When compiling the following code with Rascal and running:
function F() {
trace("F called, this is " + (this == _root ? "_root" : "new object"));
this.prop = "prop";
}
F.prototype.proto = "proto";
trace(new F().proto); // "undefined", expected "proto"
trace((new F()).proto); // "proto", as expected
trace(new F().prop); // "underfined", expected "prop"
trace(new F()["proto"]); // "undefined", expected "proto"
Version: 0.3.6
When compiling the following code with Rascal and running: