JSObject::putInlineSlow should not ignore "__proto__" for Proxy
[WebKit-https.git] / JSTests / stress / proxy-__proto__-in-prototype-chain.js
1 let called = false;
2 let p = new Proxy({ }, {
3     set(obj, prop, value) {
4         called = prop === "__proto__";
5     }
6 });
7 let o = {__proto__: p};
8 o.__proto__ = null;
9
10 if (!called)
11     throw new Error;
12
13 called = false;
14 Reflect.set(o, "__proto__", null, {});
15 if (!called)
16     throw new Error;