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