/ node_modules / opentype.js / .reify-cache / ca60347bda8f505a6cd4457601eabd152da7518e.js
ca60347bda8f505a6cd4457601eabd152da7518e.js
 1  "use strict";module.export({fail:()=>fail,argument:()=>argument,assert:()=>argument});// Run-time checking of preconditions.
 2  
 3  function fail(message) {
 4      throw new Error(message);
 5  }
 6  
 7  // Precondition function that checks if the given predicate is true.
 8  // If not, it will throw an error.
 9  function argument(predicate, message) {
10      if (!predicate) {
11          fail(message);
12      }
13  }
14  
15  
16  module.exportDefault({ fail, argument, assert: argument });