blob: 52d331d977db5f37befa321757fe6c7bcf5342e3 (
plain)
1
2
3
4
5
6
7
8
9
|
Object.defineProperty(Object.prototype, "a", {
set: function(a) { eval(""); return 123; }
});
var obj = {};
var obj2 = {x: 1};
for (var i = 0; i < 100; i++) {
var res = (obj.a = obj2);
res.x = 0xbeef;
}
|