blob: dc0dadb3375ae39800cfc14bcaf55ec172ba5e31 [file] [log] [blame]
function f(code) {
code.replace(/s/, "")
eval(code)
}
this.__defineGetter__("x", function() { return /x/.exec('x'); })
f("function a() {\
x = Proxy.createFunction((function () {\
return {\
defineProperty: function (name, desc) {\
Object.defineProperty(x, name, desc)\
},\
has: function () {},\
get: function (r, name) {\
return x[name]\
}\
}\
})(), Object.defineProperties).__defineGetter__(\"\",(Function(\"\")))} ;\
a()\
")
reportCompare("ok", "ok", "bug 566914");