import LineNo , { start } from './lineno' ; export default class ParseError extends Error { constructor ( reason , lineno ) { let line = start ( lineno ) ; if ( line ) { super ( `${ reason } (on line ${ line })` ) ; } else { super ( reason ) ; } } }