mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
Add await test: await is valid in non-module strict mode code.
This commit is contained in:
parent
057a31e15e
commit
67382a1e8e
@ -0,0 +1,25 @@
|
|||||||
|
// 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
|
||||||
|
});
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user