Throw correct Error object
We've already defined the name Error as a logging function, so we need to be more explicit when we want to refer to the exception class.
This commit is contained in:
committed by
Lauri Kasanen
parent
915901848d
commit
d20f751441
@@ -40,7 +40,7 @@ export function init_logging(level) {
|
|||||||
case 'none':
|
case 'none':
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error("invalid logging type '" + level + "'");
|
throw new window.Error("invalid logging type '" + level + "'");
|
||||||
}
|
}
|
||||||
/* eslint-enable no-console, no-fallthrough */
|
/* eslint-enable no-console, no-fallthrough */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user