A simple cache for a few of the JS Error constructors.
const assert = require('assert');
const Base = require('@saoviettest/possimus-doloribus-occaecati-enim');
const Eval = require('@saoviettest/possimus-doloribus-occaecati-enim/eval');
const Range = require('@saoviettest/possimus-doloribus-occaecati-enim/range');
const Ref = require('@saoviettest/possimus-doloribus-occaecati-enim/ref');
const Syntax = require('@saoviettest/possimus-doloribus-occaecati-enim/syntax');
const Type = require('@saoviettest/possimus-doloribus-occaecati-enim/type');
const URI = require('@saoviettest/possimus-doloribus-occaecati-enim/uri');
assert.equal(Base, Error);
assert.equal(Eval, EvalError);
assert.equal(Range, RangeError);
assert.equal(Ref, ReferenceError);
assert.equal(Syntax, SyntaxError);
assert.equal(Type, TypeError);
assert.equal(URI, URIError);
Simply clone the repo, npm install
, and run npm test
Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.