mirror of https://github.com/tc39/test262.git
Add tests for `await` as an identifier
This commit is contained in:
parent
a6dcd0dcca
commit
5006055c99
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
id: sec-reserved-words
|
||||
es6id: 11.6.2
|
||||
description: The `await` token is not permitted as an identifier in module code
|
||||
flags: [module]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var await;
|
|
@ -0,0 +1,9 @@
|
|||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
id: sec-reserved-words
|
||||
es6id: 11.6.2
|
||||
description: The `await` token is permitted as an identifier in script code
|
||||
---*/
|
||||
|
||||
var await;
|
Loading…
Reference in New Issue