From f51b56d8117a7507eba0cc8da9517bd6bb2793a8 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 5 Jan 2017 18:04:26 +0100 Subject: [PATCH] remove unused var declaration --- src/util/internalCallTree.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/internalCallTree.js b/src/util/internalCallTree.js index f226c74d68..573bf9d0d0 100644 --- a/src/util/internalCallTree.js +++ b/src/util/internalCallTree.js @@ -73,9 +73,8 @@ class InternalCallTree { var scopeId = util.findLowerBoundValue(vmtraceIndex, scopes) scopeId = this.scopeStarts[scopeId] var scope = this.scopes[scopeId] - var reg = /(.\d|\d)$/ while (scope.lastStep && scope.lastStep < vmtraceIndex) { - var matched = scopeId.match(reg) + var matched = scopeId.match(/(.\d|\d)$/) scopeId = scopeId.replace(matched[1], '') scope = this.scopes[scopeId] }