2.1.41 [ECMA-262/6] Section 14.4 Generator Function Definitions

V0005: A YieldExpression is not treated as restricted

The specification states:

 14.4 Generator Function Definitions
  
     Syntax
         ...
         YieldExpression[In] :
             yield
             yield [no LineTerminator here] AssignmentExpression[?In, Yield]
             yield [no LineTerminator here] * AssignmentExpression[?In, Yield]

IE11 Mode (All versions)

A YieldExpression production is not treated as restricted; that is, it may have LineTerminator characters between yield and the remainder of the production. The following production is implemented:

    YieldExpression[In] :

        yield

        yield AssignmentExpression[?In, Yield]

        yield * AssignmentExpression[?In, Yield]