summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/TypedObject/bug953111.js
blob: 4610a848e7bc860d07944d2362c368cc75008b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

if (!this.hasOwnProperty("TypedObject"))
  quit();

// bug 953111

var A = TypedObject.uint8.array(0);
var a = new A();
a.forEach(function(val, i) {});

// bug 951356 (dup, but a dup that is more likely to crash)

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