Skip to content

Commit

Permalink
fix(compiler): infinite loop in generateCodeFrame (vuejs#10547)
Browse files Browse the repository at this point in the history
  • Loading branch information
oguimbal committed Sep 24, 2019
1 parent 954643a commit 6095bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/codeframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function generateCodeFrame (
let count = 0
const res = []
for (let i = 0; i < lines.length; i++) {
count += lines[i].line.length + 1
count += lines[i].line.length + lines[i].increment
if (count >= start) {
for (let j = i - range; j <= i + range || end > count; j++) {
if (j < 0) continue
Expand Down

0 comments on commit 6095bf1

Please sign in to comment.