summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/block-scope/leave/try-block-let-declaration-only-shadows-outer-parameter-value-2.js
blob: 7d0cb8c0f8d8c7e935da3d6b1e9d9b5850910aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.1
description: >
    try block let declaration only shadows outer parameter value 2
---*/
(function(x) {
  try {
    let x = 'middle';
    {
      let x = 'inner';
      throw 0;
    }
  } catch (e) {
    assert.sameValue(x, 'outer');
  }
})('outer');


reportCompare(0, 0);