summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-665355.js
blob: ef91161c40ffe615ac9ed7a324ae6e43463f3dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var x = new ArrayBuffer(2);

var test = function(newProto) {
try {
    x.__proto__ = newProto;
    return false;
} catch(e) {
    return true;
}
}

assertEq(test(x), true);
assertEq(test({}), true);
assertEq(test(null), true);

reportCompare(true, true);