diff options
author | Jez Ng <me@jezng.com> | 2013-06-06 18:12:39 -0700 |
---|---|---|
committer | Jez Ng <me@jezng.com> | 2013-06-19 01:22:01 -0700 |
commit | 165befaa29b7226b28caecd2f30bae91dc20f26f (patch) | |
tree | fa50042f6eba9fd29e0c27773af7051188f3b4a8 /tools | |
parent | 747f74e1055feaea11222978d46c421ac92602ea (diff) |
Add check for keep_llvm_debug + minor touchups.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/sourcemapper.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/sourcemapper.js b/tools/sourcemapper.js index 1f28b371..3d8dbe99 100755 --- a/tools/sourcemapper.js +++ b/tools/sourcemapper.js @@ -5,8 +5,7 @@ function countLines(s) { var count = 0; for (var i = 0, l = s.length; i < l; i ++) { - var c = s[i]; - if (c === '\n') count++; + if (s[i] === '\n') count++; } return count; } @@ -74,7 +73,6 @@ function generateMap(fileName, sourceRoot, mapFileBaseName) { var seenFiles = Object.create(null); extractComments(generatedSource, function(content, generatedLineNumber) { - console.log(content, generatedLineNumber) var matches = /@line (\d+) "([^"]*)"/.exec(content); if (matches === null) return; var originalLineNumber = parseInt(matches[1], 10); |