summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1100623.js
blob: b3de54b5742d28de2c9157c8417a4bd1863d8030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| error: baz is null

var document = {getElementById: () => null};

(function() {
    const one = 1;

    function foo() { return one; }
    function bar() { return foo(); }

    var baz = document.getElementById("baz");
    baz.value;
})();