test262/test/language/statements/let/syntax/attempt-to-redeclare-let-bi...

15 lines
373 B
JavaScript

// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: B.3.3
description: >
redeclaration within block:
attempt to redeclare let binding with function declaration
negative:
phase: parse
type: SyntaxError
---*/
failIfCodeGetsEvaluated();
{ let f; function f() {} }