devAssert.mjs 251 B

1234567
  1. export default function devAssert(condition, message) {
  2. var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')
  3. if (!booleanCondition) {
  4. throw new Error(message);
  5. }
  6. }