Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(function() {
var you = true;
const MATTIA = 'Mattia';
var myName = {
is: function(name) {
return name == MATTIA
}
};
var to = {
call: {
me: function(name) {
if (myName != name) {
throw new Error('#epicfail');
}
}
}
};
if (you) {
try {
while (myName.is(MATTIA)) {
to.call.me('Matteo');
}
} catch (error) {
console.log('error:', error.message);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment