It's not a ReferenceError to create a function that refers to a symbol that isn't unresolvable at the time the function is created. The error happens later, when the function is called, if the symbol is unresolvable at that time.