archives

« Bugzilla Issues Index

#3005 — disagreement on whether parameter/let binding conflict should be error


see Bug 2984

Spec currently says
function f(x) {
let x
}

is an early error. Also same for
try {} catch(x) {let x]}

Andreas Rossberg disagrees. Says shouldn't be an error because body is a separate scope.

Need to resolve this at a TC39 meeting.


See also: https://mail.mozilla.org/pipermail/es-discuss/2014-July/038358.html


or see http://esdiscuss.org/topic/uniform-block-scoping


July 201`4 UC39 meeting decided to leave as early errors.