Debian Codegraph @

js/src/tests/test262/language/global-code/decl-func-dup.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 redeclaration outermost:
7 allowed to redeclare function declaration with function declaration
8 ---*/
9 function f() { return 1; } function f() { return 2; }
10
11 assert.sameValue(f(), 2);
12
13 reportCompare(0, 0);