UNPKG

@tevm/utils

Version:

A custom implementation of ethereumjs blockchain

8 lines (6 loc) 203 B
import { DefensiveNullCheckError } from '@tevm/errors' export function invariant(condition: any, error: Error = new DefensiveNullCheckError()): asserts condition { if (!condition) { throw error } }