Skip to content

Commit 69f56ee

Browse files
mraakgetify
authored andcommitted
#23 fixed handling of optional options
1 parent a329032 commit 69f56ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/checker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,8 @@ function addOutputMessage({ type = "info", id = -1, text = "?", node = {}, } =
19311931
outputMessages.push({ type, id, text: textWithLoc, });
19321932
}
19331933

1934-
function check(code, {verbose=true}) {
1934+
function check(code, options = {}) {
1935+
var { verbose = true } = options
19351936
var ast = babylon.parse(code);
19361937
var needAnotherPass = false;
19371938

0 commit comments

Comments
 (0)