Debian Codegraph @

js/src/tests/test262/language/expressions/async-generator/early-errors-expression-eval-in-formal-parameters-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright 2017 the V8 project authors. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5
6 /*---
7 author: Caitlin Potter <[email protected]>
8 esid: sec-strict-mode-of-ecmascript
9 description: >
10 It is a SyntaxError if FormalParameters contains eval in strict mode.
11 negative:
12 phase: parse
13 type: SyntaxError
14 flags: [onlyStrict]
15 features: [async-iteration]
16 ---*/
17
18 $DONOTEVALUATE();
19
20 (async function*(eval) { });