mirror of https://github.com/tc39/test262.git
26 lines
585 B
JavaScript
26 lines
585 B
JavaScript
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
description: >
|
|
Object literal shorthands are limited to valid identifier references. await is valid in non-module strict mode code.
|
|
esid: sec-object-initializer
|
|
flags: [noStrict]
|
|
info: |
|
|
PropertyDefinition:
|
|
IdentifierReference
|
|
CoverInitializedName
|
|
PropertyName : AssignmentExpression
|
|
MethodDefinition
|
|
Identifier : IdentifierName but not ReservedWord
|
|
|
|
---*/
|
|
|
|
var await = 1;
|
|
(function() {
|
|
"use strict";
|
|
({
|
|
await
|
|
});
|
|
});
|