summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/reserved-words/await-module.js
blob: bd41278a1f4a37d948079fbe87adf0ff8bae1baf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |reftest| error:SyntaxError module
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-reserved-words
es6id: 11.6.2
description: The `await` token is not permitted as an identifier in module code
flags: [module]
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();

var await;