michael@0: var ab = new ArrayBuffer(5); michael@0: var p = new Proxy(ab, {}); michael@0: var ps = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set; michael@0: var threw = 0; michael@0: try { michael@0: ps.call(p, {}); michael@0: } catch(ex) { michael@0: threw = 1; michael@0: } michael@0: michael@0: reportCompare(1, threw, "Setting __proto__ on a proxy to an ArrayBuffer must throw.");