summaryrefslogtreecommitdiff
path: root/js/src/tests/js1_8_5/regress/regress-566914.js
blob: 79cd1f707838410b6c1c55b0ad22420786df2a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function f(code) {
	    code.replace(/s/, "")
	    eval(code)
	}
	this.__defineGetter__("x", /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");