summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/firstSlotConflict.js
blob: fe6ef51c7c72e68125d3a869324dd1cda4a95ebb (plain)
1
2
3
4
5
6
7
8
9
10
(function(x) {
    function f1() { return 1; }
    function f2() { return 2; }
    function f3() { return 3; }
    function f4() { return 4; }
    var g = function () { return x; }
    var a = [f1, f2, f3, f4, g];
    for (var v of a)
        v.adhoc = 42;   // Don't assertbotch in jsbuiltins.cpp setting g.adhoc
})(33);