Debian Codegraph @

js/src/tests/test262/language/expressions/in/rhs-yield-absent-strict-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright 2021 the V8 project authors. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5
6 /*---
7 description: Parsing observes the `Yield` production parameter when absent (within strict mode)
8 info: |
9 Syntax
10 RelationalExpression[In, Yield, Await]:
11 [...]
12 [+In] RelationalExpression[+In, ?Yield, ?Await] in ShiftExpression[?Yield, ?Await]
13 esid: sec-relational-operators
14 negative:
15 phase: parse
16 type: SyntaxError
17 flags: [onlyStrict]
18 ---*/
19
20 $DONOTEVALUATE();
21
22 '' in (yield);