Skip to content

Commit 045475f

Browse files
Merge pull request #1 from hughsk/fix-error-loop
Prevent infinite loop when catching errors.
2 parents 0925f97 + 43099f8 commit 045475f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function parser() {
210210

211211
function take() {
212212
if(errored || !state.length)
213-
return errored
213+
return false
214214

215215
return (token = tokens[0]) && !stream.paused
216216
}

0 commit comments

Comments
 (0)