/**
 * Used to replace console.assert to make sure that it always throws an error, both in the browser and in Node
 */ export class ConsoleUtils { param in_condition param in_message static assert ( condition , message ) { if ( ! ( condition as boolean ) ) { throw new Error ( typeof message === "number" ? `0x${ message . toString ( 16 ) . padStart ( 3 , "0" ) }` : message ) ; } } }