test262/test/language/expressions/object/prop-def-invalid-star-prefix.js
Timothy Gu bafa05316e Add test for ({* identifier}) (#2060)
Counterpart to language/expressions/object/prop-def-invalid-async-prefix.js.
2019-02-04 12:03:14 -07:00

22 lines
474 B
JavaScript

// Copyright (C) 2019 Tiancheng "Timothy" Gu. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
* is not a valid prefix of an identifier reference
esid: sec-object-initializer
info: |
PropertyDefinition:
IdentifierReference
CoverInitializedName
PropertyName : AssignmentExpression
MethodDefinition
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
({* foo});