summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1092833.js
blob: 64a74fb28fd65699c674e0f04c62e011fb621269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Test that lexicals work with functions with many bindings.

(function() {
    var a01
    var b02
    var c03
    var d04
    var e05
    var f06
    var g07
    var h08
    let i09
    var j10
    var k11
    var l12
    var m13
    var n14
    var o15
    (function n14() {
      assertEq(i09, undefined);
    })()
})();

try {
  (function() {
      var a01
      var b02
      var c03
      var d04
      var e05
      var f06
      var g07
      var h08
      let i09
      var j10
      var k11
      var l12
      var m13
      var n14
      var o15
      (function n14() {
        i12++
      })()
      let i12
  })()
} catch (e) {
  assertEq(e instanceof ReferenceError, true);
  assertEq(e.message.indexOf("i12") > 0, true);
}