Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switched to using finally instead of a normal catch.

  • Loading branch information...
commit f8cd28b9fff346a7365d5036dc81fe35746c4029 1 parent 2d2e4e7
@jeresig authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 chrome/content/fireunit/fireunit.js
View
11 chrome/content/fireunit/fireunit.js
@@ -415,10 +415,13 @@ FBL.ns(function() { with (FBL) {
profile: function( fn ) {
win.console.profile();
win.__profile = fn;
- try { win.__profile(); } catch(e){}
- win.console.profileEnd();
- delete win.__profile;
- return this.getProfile();
+ try {
+ win.__profile();
+ } finally {
+ win.console.profileEnd();
+ delete win.__profile;
+ return this.getProfile();
+ }
},
/*
Please sign in to comment.
Something went wrong with that request. Please try again.