summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/TypedObject/bug970285.js
blob: f5d36cdc97b311178cdfc6ffb08fd13a78eda528 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| error:TypeError

if (!this.hasOwnProperty("TypedObject"))
  throw new TypeError();

// Test that we detect invalid lengths supplied to unsized array
// constructor. Public domain.

var AA = TypedObject.uint8.array(2147483647).array();
var aa = new AA(-1);