summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug746103.js
blob: 75a34319b757499b92b86230f988ffbfef342790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| slow; error:InternalError

// Binary: cache/js-dbg-64-c61e7c3a232a-linux
// Flags: -m -n -a
//

gczeal(2);
function testCallProtoMethod() {
    function X() {
        this.valueOf = new testCallProtoMethod( "return this.value" );
    }
    X.prototype.getName = function () { return "X"; }
    var a = [new X, new X, new getName, new new this, new Y];
}
testCallProtoMethod();