michael@0: michael@0: var handler = { michael@0: has: function (name) { michael@0: assertEq(1, 2); michael@0: } michael@0: }; michael@0: michael@0: for (var i=0; i<10; i++) { michael@0: var regex = /undefined/; michael@0: regex.__proto__ = Proxy.createFunction(handler, function(){}) michael@0: } michael@0: