UNPKG

ibctminer

Version:

```js const IntMiner = require('./src'); const Debug = require('./src/log')(); const fs = require('fs'); const COMP = '[SIPC]';

29 lines (21 loc) 442 B
/*! * assert.js - assert for bcrypto * Copyright (c) 2020, Christopher Jeffrey (MIT License). * https://github.com/bcoin-org/bcrypto */ 'use strict'; /* * Assert */ function assert(val, msg) { if (!val) { const err = new Error(msg || 'Assertion failed'); if (Error.captureStackTrace) Error.captureStackTrace(err, assert); throw err; } } /* * Expose */ module.exports = assert;