summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug928542.js
blob: d79c929febad54acf76147fbce35352a1de98513 (plain)
1
2
3
4
5
6
7
8
9
10

called = 0;
function foo() {
    this.what();
    this.random = 0;
    this.what = 1;
}
foo.prototype.what = function() { called = 1; }
new foo();
assertEq(called, 1);