michael@0: var p = Proxy.create({ michael@0: has : function(id) {} michael@0: }); michael@0: Object.prototype.__proto__ = p; michael@0: function f() { michael@0: if (/a/.exec("a")) michael@0: return 1; michael@0: return 0; michael@0: } michael@0: delete RegExp.prototype.test; michael@0: f(); michael@0: