From c86511a61f2e8a7e4eafa0dd0475afd010c1bf82 Mon Sep 17 00:00:00 2001 From: Edgar HIPP Date: Sun, 15 Mar 2020 15:19:38 +0100 Subject: [PATCH] Avoid using ES6 features --- lib/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 446a1bc..9668c33 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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") {