Muqriz 48f16bfc3e initail first | vor 4 Monaten | |
---|---|---|
.. | ||
.github | vor 4 Monaten | |
test | vor 4 Monaten | |
.eslintrc | vor 4 Monaten | |
CHANGELOG.md | vor 4 Monaten | |
LICENSE | vor 4 Monaten | |
README.md | vor 4 Monaten | |
eval.d.ts | vor 4 Monaten | |
eval.js | vor 4 Monaten | |
index.d.ts | vor 4 Monaten | |
index.js | vor 4 Monaten | |
package.json | vor 4 Monaten | |
range.d.ts | vor 4 Monaten | |
range.js | vor 4 Monaten | |
ref.d.ts | vor 4 Monaten | |
ref.js | vor 4 Monaten | |
syntax.d.ts | vor 4 Monaten | |
syntax.js | vor 4 Monaten | |
tsconfig.json | vor 4 Monaten | |
type.d.ts | vor 4 Monaten | |
type.js | vor 4 Monaten | |
uri.d.ts | vor 4 Monaten | |
uri.js | vor 4 Monaten |
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.