Skip to content
Browse files

Support Windows paths

  • Loading branch information...
1 parent a066765 commit 13cabddeef87da4ea95108a3ef58a8b87b532fbb @medikoo committed Oct 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/profiler.js
View
4 lib/profiler.js
@@ -28,8 +28,8 @@ profile = function (isResolved) {
stack = (new Error()).stack;
if (!stack.split('\n').slice(3).some(function (line) {
- if ((line.indexOf('/deferred/') === -1) &&
- (line.indexOf('/es5-ext/') === -1) &&
+ if ((line.search(/[\/\\]deferred[\/\\]/) === -1) &&
+ (line.search(/[\/\\]es5-ext[\/\\]/) === -1) &&
(line.indexOf(' (native)') === -1)) {
line = line.replace(/\n/g, "\\n").trim();
if (!data[line]) {

0 comments on commit 13cabdd

Please sign in to comment.
Something went wrong with that request. Please try again.