js/src/tests/ecma_6/Proxy/regress-bug950407.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:b62186357927
1 var ab = new ArrayBuffer(5);
2 var p = new Proxy(ab, {});
3 var ps = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set;
4 var threw = 0;
5 try {
6 ps.call(p, {});
7 } catch(ex) {
8 threw = 1;
9 }
10
11 reportCompare(1, threw, "Setting __proto__ on a proxy to an ArrayBuffer must throw.");

mercurial