mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 22:45:10 +02:00
Add tests for await
as an identifier
This commit is contained in:
parent
a6dcd0dcca
commit
5006055c99
11
test/language/reserved-words/await-module.js
Normal file
11
test/language/reserved-words/await-module.js
Normal file
@ -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;
|
9
test/language/reserved-words/await-script.js
Normal file
9
test/language/reserved-words/await-script.js
Normal file
@ -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…
x
Reference in New Issue
Block a user