Skip to content

Instantly share code, notes, and snippets.

@bobrik
Created May 22, 2013 12:27
Show Gist options
  • Save bobrik/5627175 to your computer and use it in GitHub Desktop.
Save bobrik/5627175 to your computer and use it in GitHub Desktop.
phpstorm js hits bug
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
(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"));
})();
@bobrik
Copy link
Author

bobrik commented May 22, 2013

http://puu.sh/2YJrp.png - screenshot from phpstorm 6.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment