Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/async-generator/early-errors-expression-NSPL-with-USD.js

raw
1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 author: Caitlin Potter <[email protected]>
6 esid: sec-async-generator-function-definitions-static-semantics-early-errors
7 description: >
8 It is a Syntax Error if ContainsUseStrict of AsyncGeneratorBody is true and
9 IsSimpleParameterList of UniqueFormalParameters is false.
10 negative:
11 phase: parse
12 type: SyntaxError
13 features: [async-iteration]
14 ---*/
15
16 throw "Test262: This statement should not be evaluated.";
17
18 (async function*(x = 1) {"use strict"});