1 2 3 4 5 6 7 8 9 10 11 12
var handler = { has: function (name) { assertEq(1, 2); } }; for (var i=0; i<10; i++) { var regex = /undefined/; regex.__proto__ = new Proxy(function() {}, handler) }