filename

The filename read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.

MDN Reference