Skip to content

Instantly share code, notes, and snippets.

@dherman
Created April 16, 2012 02:12
Show Gist options
  • Save dherman/2396007 to your computer and use it in GitHub Desktop.
Save dherman/2396007 to your computer and use it in GitHub Desktop.
refactoring hazard with missing semicolons
function mumble() {
foobar()
var x;
[1, 2, 3].forEach(quux);
if (blah()) {
x = "oogy";
} else {
x = "boogy";
}
return xyzzx(x);
}
function mumble() {
var x;
foobar()
[1, 2, 3].forEach(quux);
if (blah()) {
x = "oogy";
} else {
x = "boogy";
}
return xyzzx(x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment