summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/TypedObject/bug1232159.js
blob: 67b8b6946890d432a377c3d0374cffe5fec74311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (!this.hasOwnProperty("TypedObject"))
    quit();

Function.prototype.prototype = function() {}

var type = TypedObject.uint8.array(4).array(4);
var x = new type([
    [, , , 0],
    [, , , 0],
    [, , , 0],
    [, , , 0]
]);

x.map(2, function(y) {
    return 0;
});