es-shims

es-shims/error-cause

An ES-spec-compliant shim/polyfill/replacement for the `.cause` property on all Error types that works as far down as ES3

JavaScript
19
4
MIT License

error-cause is a polyfill that provides ES-spec-compliant support for the `.cause` property on Error objects, enabling developers to chain error causes in JavaScript environments as far back as ES3. It's designed for developers working on projects that need to maintain compatibility with older JavaScript environments while leveraging modern error handling features.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of es-shims/error-cause

Account's avatar
Robustly `.call.bind()` a function
Account's avatar
Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.
Account's avatar
ECMAScript spec abstract operations.
Account's avatar
ES Proposal spec-compliant shim for AggregateError
Account's avatar
A simple cache for a few of the JS Error constructors.
Account's avatar
ECMAScript spec-compliant polyfill/shim for `globalThis`
Account's avatar
Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
Account's avatar
Robustly set the [[Prototype]] of an object
Account's avatar
Loosely test a package's compliance with the es-shim API
Account's avatar
My shareable eslint config
Account's avatar
Command line tool for generating a changelog from git tags and commit history
Account's avatar
Convert encodings, uses iconv-lite
Account's avatar
Evaluates javascript code blocks from markdown files.
Account's avatar
An ES2015 spec-compliant `Function.prototype.name` shim
Account's avatar
Does the current JS environment have strict mode? ES5+ should; but let's not assume.
Account's avatar
Detect if we were run as a result of `npm publish`
Account's avatar
Command line tool for creating or updating a .npmignore file based on .gitignore.
Account's avatar
the Istanbul command line interface
Account's avatar
Ensure that when you `npm publish`, the "latest" tag is only set for the truly latest version.
Account's avatar
tap-producing test harness for node and browsers

Support the repos that depend on es-shims/error-cause

Top contributors

ljharb's profile
ljharb
52 contributions
PaperStrike's profile
PaperStrike
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet