summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1100623.js
blob: 7de07d2749c1cff0279931da9650f9ad35df93d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |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;
})();