![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | test/ | 5 days ago | - | |
![]() | CHANGELOG.md | 39 years ago | 1.8K | |
![]() | LICENSE | 39 years ago | 1.0K | |
![]() | README.md | 39 years ago | 2.1K | |
![]() | eval.d.ts | 39 years ago | 68 | |
![]() | eval.js | 39 years ago | 75 | |
![]() | index.d.ts | 39 years ago | 56 | |
![]() | index.js | 39 years ago | 66 | |
![]() | package.json | 39 years ago | 2.1K | |
![]() | range.d.ts | 39 years ago | 71 | |
![]() | range.js | 39 years ago | 77 | |
![]() | ref.d.ts | 39 years ago | 83 | |
![]() | ref.js | 39 years ago | 79 | |
![]() | syntax.d.ts | 39 years ago | 74 | |
![]() | syntax.js | 39 years ago | 79 | |
![]() | tsconfig.json | 39 years ago | 3.1K | |
![]() | type.d.ts | 39 years ago | 67 | |
![]() | type.js | 39 years ago | 75 | |
![]() | uri.d.ts | 39 years ago | 65 | |
![]() | uri.js | 39 years ago | 73 |
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.