diff -r 000000000000 -r 6474c204b198 js/src/tests/ecma_6/Proxy/regress-bug950407.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/tests/ecma_6/Proxy/regress-bug950407.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,11 @@ +var ab = new ArrayBuffer(5); +var p = new Proxy(ab, {}); +var ps = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set; +var threw = 0; +try { + ps.call(p, {}); +} catch(ex) { + threw = 1; +} + +reportCompare(1, threw, "Setting __proto__ on a proxy to an ArrayBuffer must throw.");