Debian Codegraph @

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