55e1cfebfd
Emit an early error when BindingPatterns are used in a VariableDeclaration or LexicalBinding without an Initializer. BUG=v8:4532 LOG=N R=adamk@chromium.org, rossberg@chromium.org, wingo@igalia.com Review URL: https://codereview.chromium.org/1416753009 Cr-Commit-Position: refs/heads/master@{#31802}
8 lines
366 B
Plaintext
8 lines
366 B
Plaintext
# Copyright 2015 the V8 project authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
*%(basename)s:7: SyntaxError: Missing initializer in destructuring declaration
|
|
for (var { a, b, c }; a && b && c; ) {}
|
|
^^^^^^^^^^^
|
|
SyntaxError: Missing initializer in destructuring declaration
|