summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/object/identifier-shorthand-await-strict-mode.js
blob: 23dd4af93a750627142d50692e5e9a976841361e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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
  });
});

reportCompare(0, 0);