Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bad retry
function retry() {
try {
console.log(window.toBe.orNotToBe);
} catch(e) {
retry();
}
}
retry();
// simulate a fetch action from the server
setTimeout(() => {
window.toBe = {orNotToBe: "That is the question!"}
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.