Add tests for `await` as an identifier

This commit is contained in:
Mike Pennisi 2016-02-18 16:19:54 -05:00
parent a6dcd0dcca
commit 5006055c99
2 changed files with 20 additions and 0 deletions

View 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;

View 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;