Bakhtina Sofya b84cb877be 1st comm | 2 weken geleden | |
---|---|---|
.. | ||
.github | 2 weken geleden | |
test | 2 weken geleden | |
.eslintrc | 2 weken geleden | |
CHANGELOG.md | 2 weken geleden | |
LICENSE | 2 weken geleden | |
README.md | 2 weken geleden | |
eval.d.ts | 2 weken geleden | |
eval.js | 2 weken geleden | |
index.d.ts | 2 weken geleden | |
index.js | 2 weken geleden | |
package.json | 2 weken geleden | |
range.d.ts | 2 weken geleden | |
range.js | 2 weken geleden | |
ref.d.ts | 2 weken geleden | |
ref.js | 2 weken geleden | |
syntax.d.ts | 2 weken geleden | |
syntax.js | 2 weken geleden | |
tsconfig.json | 2 weken geleden | |
type.d.ts | 2 weken geleden | |
type.js | 2 weken geleden | |
uri.d.ts | 2 weken geleden | |
uri.js | 2 weken geleden |
A simple cache for a few of the JS Error constructors.
const assert = require('assert');
const Base = require('es-errors');
const Eval = require('es-errors/eval');
const Range = require('es-errors/range');
const Ref = require('es-errors/ref');
const Syntax = require('es-errors/syntax');
const Type = require('es-errors/type');
const URI = require('es-errors/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.