Debian Codegraph @

js/src/tests/test262/language/block-scope/shadowing/let-declaration-shadowing-catch-parameter.js

raw
1 // Copyright (C) 2011 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 13.1
5 description: >
6 let declaration shadowing catch parameter
7 ---*/
8 try {
9 throw 'stuff1';
10 } catch (a) {
11 {
12 // let declaration shadowing catch parameter
13 let a = 3;
14 assert.sameValue(a, 3);
15 }
16 assert.sameValue(a, 'stuff1');
17 }
18
19
20 reportCompare(0, 0);