summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/global-code/decl-func-dup.js
blob: 501099f58fe9220dd9608d8a9ef335d92baf7ed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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: >
    redeclaration outermost:
    allowed to redeclare function declaration with function declaration
---*/
function f() { return 1; } function f() { return 2; }

assert.sameValue(f(), 2);

reportCompare(0, 0);