aboutsummaryrefslogtreecommitdiffstats
path: root/test/language/global-code/decl-func-dup.js
blob: ee808a3712e54f1f3e2ce9b01ccfcc39557d36e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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);