b8feade615
Fixed issue were using the `arguments` object as a shorthand for a class field initializer was not producing an early error. Bug: chromium:1216261 Change-Id: I7d8f5a85c6881f7ca12a0e8450954de15bdd6033 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3095017 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Luis Fernando Pardo Sixtos <lpardosixtos@microsoft.com> Cr-Commit-Position: refs/heads/main@{#76646}
6 lines
240 B
JavaScript
6 lines
240 B
JavaScript
// Copyright 2021 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.
|
|
|
|
assertThrows("function f() {class T { a = {arguments}}}", SyntaxError);
|