Created
May 22, 2013 12:27
-
-
Save bobrik/5627175 to your computer and use it in GitHub Desktop.
phpstorm js hits bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
we're good! | |
we're good! | |
we failed | |
/Users/bobrik/projects/backpack-coordinator/test6.js:8 | |
throw error; | |
^ | |
Error: three | |
at /Users/bobrik/pew/test.js:23:9 | |
at Object.<anonymous> (/Users/bobrik/pew/test.js:24:3) | |
at Module._compile (module.js:456:26) | |
at Object.Module._extensions..js (module.js:474:10) | |
at Module.load (module.js:356:32) | |
at Function.Module._load (module.js:312:12) | |
at Function.Module.runMain (module.js:497:10) | |
at startup (node.js:119:16) | |
at node.js:901:3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var retry = 1; | |
function pew(error) { | |
if (error) { | |
if (retry++ >= 3) { // value is actually used, guys | |
console.log("we failed"); | |
throw error; | |
} | |
return; | |
} | |
console.log("we're good!"); | |
retry = 1; | |
} | |
pew(); | |
pew(); | |
pew(new Error("one")); | |
pew(new Error("two")); | |
pew(new Error("three")); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://puu.sh/2YJrp.png - screenshot from phpstorm 6.0.2