Bakhtina Sofya b84cb877be 1st comm | vor 3 Wochen | |
---|---|---|
.. | ||
.github | vor 3 Wochen | |
test | vor 3 Wochen | |
.eslintrc | vor 3 Wochen | |
CHANGELOG.md | vor 3 Wochen | |
LICENSE | vor 3 Wochen | |
README.md | vor 3 Wochen | |
eval.d.ts | vor 3 Wochen | |
eval.js | vor 3 Wochen | |
index.d.ts | vor 3 Wochen | |
index.js | vor 3 Wochen | |
package.json | vor 3 Wochen | |
range.d.ts | vor 3 Wochen | |
range.js | vor 3 Wochen | |
ref.d.ts | vor 3 Wochen | |
ref.js | vor 3 Wochen | |
syntax.d.ts | vor 3 Wochen | |
syntax.js | vor 3 Wochen | |
tsconfig.json | vor 3 Wochen | |
type.d.ts | vor 3 Wochen | |
type.js | vor 3 Wochen | |
uri.d.ts | vor 3 Wochen | |
uri.js | vor 3 Wochen |
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.