Status: Untriaged
Owner: ----

New issue 4231 by [email protected]: Don't allow try-catch variable redeclaration in for-of statement
https://code.google.com/p/v8/issues/detail?id=4231

Version: 7142b0d211b732e1c119fded80f43fbbd9cea0f8

What steps will reproduce the problem?
1. Run in d8
d8> try { } catch (e) { for (var e of []) {} }
undefined

2. Run in d8
d8> try { throw null } catch (e) { eval("for (var e of []) {}") }
undefined

What is the expected output?
- Both statements throw a SyntaxError (early error in the first case, runtime error for the eval case)


What do you see instead?
- No SyntaxError thrown


Spec: ES2015
13.15.1 Static Semantics: Early Errors
18.2.1.2 Runtime Semantics: EvalDeclarationInstantiation( body, varEnv, lexEnv, strict)
B.3.5 VariableStatements in Catch blocks


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