*%(basename)s:6: ReferenceError: foo is not defined x = foo(); ^ ReferenceError: foo is not defined at X. (*%(basename)s:6:7) at new X (*%(basename)s:5:1) at *%(basename)s:9:1