Skip to content

Commit

Permalink
Avoid using ES6 features
Browse files Browse the repository at this point in the history
  • Loading branch information
edi9999 committed Mar 15, 2020
1 parent 2a9c367 commit c86511a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ var Parser = parse.Parser;
* @param {string} src
* @returns {function}
*/
function compile(src, lexerOptions = {}) {
function compile(src, lexerOptions) {
lexerOptions = lexerOptions || {};

var cached;

if (typeof src !== "string") {
Expand Down

0 comments on commit c86511a

Please sign in to comment.