Debian Codegraph @

js/src/tests/test262/language/block-scope/shadowing/catch-parameter-shadowing-let-declaration.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 catch parameter shadowing let declaration
7 ---*/
8 {
9 let a = 3;
10 try {
11 throw 'stuff2';
12 } catch (a) {
13 assert.sameValue(a, 'stuff2');
14 // catch parameter shadowing let declaration
15 a = 4;
16 assert.sameValue(a, 4);
17 }
18 assert.sameValue(a, 3);
19 }
20
21
22 reportCompare(0, 0);