Currently the proposal seems to simply say both cases throw a ReferenceError - however, there's nothing preventing an implementation from throwing a different message - ie, distinguishable error instances - in each case.
This seems like an important security consideration. Should the spec have normative text that requires implementations throw the a ReferenceError with the exact same observable characteristics?
(ping @erights)
Currently the proposal seems to simply say both cases throw a
ReferenceError- however, there's nothing preventing an implementation from throwing a different message - ie, distinguishable error instances - in each case.This seems like an important security consideration. Should the spec have normative text that requires implementations throw the a
ReferenceErrorwith the exact same observable characteristics?(ping @erights)