Release assert with <img usemap> in shadow tree
[WebKit-https.git] / JSTests / es6 / Proxy_internal_defineProperty_calls_SetIntegrityLevel.js
1 function test() {
2
3 // SetIntegrityLevel -> DefinePropertyOrThrow -> [[DefineOwnProperty]]
4 var def = [];
5 var p = new Proxy({foo:1, bar:2}, { defineProperty: function(o, v, desc) { def.push(v); Object.defineProperty(o, v, desc); return true; }});
6 Object.freeze(p);
7 return def + '' === "foo,bar";
8       
9 }
10
11 if (!test())
12     throw new Error("Test failed");
13