Skip to content

Commit acb5114

Browse files
committed
parse mode: check if undefined or strict
1 parent 20a9d27 commit acb5114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ exports.parse = function (code, mode) {
9696
var opts = {
9797
locations: true,
9898
ranges: true,
99-
strictMode: mode === 'loose' ? false : true
99+
strictMode: !mode || mode === "strict"
100100
};
101101

102102
var comments = opts.onComment = [];

0 commit comments

Comments
 (0)