No estándar
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
La propiedad fileName
contiene la ruta al archivo que generó este error.
Descripción
Esta propiedad no estándar contiene la ruta al archivo que generó este error. Si se llama desde un contexto de depuración, devuelve las herramientas de desarrollo de Firefox, por ejemplo, "código de evaluación del depurador".
Ejemplos
Usar fileName
var e = new Error('No se pudo procesar la entrada');
throw e;
// e.fileName podría verse como "file:///C:/ejemplo.html"
Especificaciones
No forma parte de ningún estándar.
Compatibilidad del navegador
BCD tables only load in the browser