mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 16:34:27 +02:00
Add test for ({* identifier}) (#2060)
Counterpart to language/expressions/object/prop-def-invalid-async-prefix.js.
This commit is contained in:
parent
b4cf5de2e8
commit
bafa05316e
@ -0,0 +1,21 @@
|
|||||||
|
// 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});
|
Loading…
x
Reference in New Issue
Block a user