
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
promise.try
Advanced tools
ES Proposal spec-compliant shim for Promise.try. Invoke its "shim" method to shim Promise.try if it is unavailable or noncompliant. Note: a global Promise must already exist: the es6-shim is recommended.
This package implements the es-shim API interface. It works in an ES3-supported environment that has Promise available globally, and complies with the proposed spec.
Most common usage:
var assert = require('assert');
var promiseTry = require('promise.try');
promiseTry(function (e) {
throw e;
}, 42).catch(function (e) {
assert.equal(e, 42);
});
promiseTry(function () {
return Infinity;
}).then(function (x) {
assert.equal(x, Infinity);
});
promiseTry.shim(); // will be a no-op if not needed
Promise.try(function () {
throw 42;
}).catch(function (e) {
assert.equal(e, 42);
});
Promise.try(function () {
return Infinity;
}).then(function (x) {
assert.equal(x, Infinity);
});
Simply clone the repo, npm install, and run npm test
FAQs
ES Proposal spec-compliant shim for Promise.try
The npm package promise.try receives a total of 450 weekly downloads. As such, promise.try popularity was classified as not popular.
We found that promise.try demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.