blob: f789d2ee85faefebc7f7ec1e2788a1e5d6436e23 [file] [log] [blame]
// 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
});
});