Skip to content

Instantly share code, notes, and snippets.

View ThomasFlorelli's full-sized avatar

Thomas Florelli ThomasFlorelli

View GitHub Profile
@ThomasFlorelli
ThomasFlorelli / promises-swallow.js
Last active May 13, 2016 14:19
Dangerous exception swallowing by promises
'use strict';
try {
new Promise((resolve) => {
resolve('test');
}).then(function () {
throw new Error('test');
});
} catch (e) {
console.log('Will not show');