Comment #5 on issue 3939 by [email protected]: Invalid source strings for "Test function declarations in statement position in strict mode." tests
https://code.google.com/p/v8/issues/detail?id=3939

To clarify, the SyntaxError exceptions that should be tested for:


  if (true) function g() {}

  if (true) {} else function g() {}

  do function g() {} while (false)

  while (false) function g() {}

  for (;false;) function g() {}


Those all require braced block bodies around the function declaration.

These tests are not valid and should be changed or removed:

  label: function g() {}

  switch (true) { case true: function g() {} }

  switch (true) { default: function g() {} }


None of these tests should be throwing a SyntaxError exception as a result of a missing "}" when wrapped in a function (eg. "function f() {" + any of the above + "", where "" is the missing "}")


--
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