summaryrefslogtreecommitdiff
path: root/alarm/node_modules/graphql/jsutils/devAssert.js
blob: 25e6d119bea640120a425d5c46a707d94c5f7868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = devAssert;

function devAssert(condition, message) {
  var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')

  if (!booleanCondition) {
    throw new Error(message);
  }
}