Skip to content

Instantly share code, notes, and snippets.

Sudsy sudsy

Block or report user

Report or block sudsy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View application.css
.done {
opacity: 0.5;
text-decoration: line-through;
sudsy / caught.js
Last active Dec 26, 2015 — forked from owenallenaz/caught.js
Showing that node.js domains do catch synchronous errors (caught.js). Showing that try catch can interfere with nodejs domains (notcaught.js).
View caught.js
var domain = require("domain");
var d = domain.create();
d.on("error", function() {
console.log("domain caught");
}); {
throw new Error("foo");
You can’t perform that action at this time.