JS: prevent optimizer from removing access to dynamic property access. See KT-15278
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
var log = "";
|
||||
|
||||
function C() {
|
||||
}
|
||||
Object.defineProperty(C.prototype, "foo", {
|
||||
"get" : function () {
|
||||
log += "foo called";
|
||||
return "OK"
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user