/**
 * Manage console messages and errors.
 */ export default class Log { param { string } message param { string } type static error ( message , type ? ) { switch ( type ) { case "eval" : throw new EvalError ( message ) ; case "range" : throw new RangeError ( message ) ; case "reference" : throw new ReferenceError ( message ) ; case "syntax" : throw new SyntaxError ( message ) ; case "type" : throw new TypeError ( message ) ; case "uri" : throw new URIError ( message ) ; default : throw new Error ( message ) ; } } param { string } message static info ( message ) { console . log ( message ) ; } param { string } message static debug ( message ) { console . debug ( message ) ; } }