Sha256: 993f3c863c58045b5e9f40defed4554d249657ededede4f9438b7ab8da7c63a6
Contents?: true
Size: 603 Bytes
Versions: 19
Compression:
Stored size: 603 Bytes
Contents
/** * Prints a warning in the console if it exists. * * @param {String} message The warning message. * @returns {void} */ export default function warning(message) { /* eslint-disable no-console */ if (typeof console !== 'undefined' && typeof console.error === 'function') { console.error(message) } /* eslint-enable no-console */ try { // This error was thrown as a convenience so that if you enable // "break on all exceptions" in your console, // it would pause the execution at this line. throw new Error(message) } catch (e) {} // eslint-disable-line no-empty }
Version data entries
19 entries across 19 versions & 2 rubygems