Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review: https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 var x = new ArrayBuffer(2);
2
3 var test = function(newProto) {
4 try {
5 x.__proto__ = newProto;
6 return false;
7 } catch(e) {
8 return true;
9 }
10 }
11
12 assertEq(test(x), true);
13 assertEq(test({}), true);
14 assertEq(test(null), true);
15
16 reportCompare(true, true);