Status: Assigned
Owner: [email protected]
CC: [email protected], [email protected], [email protected], [email protected]
Labels: Type-Bug Priority-Medium OS-All Harmony Area-Language

New issue 4394 by [email protected]: Initializers in arrow function formal parameters may not contain yield expressions
https://code.google.com/p/v8/issues/detail?id=4394

Consider:

  // 1
  function *g() { (({a=yield})) }

A perfectly valid term.  However:

  // 2
  function *g() { (({a=yield})=>42) }

No longer valid.

Likewise, although this is not valid:

  // 3
  function *g() { (({a} = 42)) }

This however is:

  // 4
  function *g() { (({a}=42)=>42) )

But this is not:

  // 5
  function *g() { (({a}=yield)=>42) )

V8 gets cases (2) and (5) wrong. It needs to detect yield expressions in initializers in formal parameters and cause them to signal an early syntax error.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to