diff --git a/tests/unit/jsParse.js b/tests/unit/jsParse.js index ed550c9b9..381484877 100644 --- a/tests/unit/jsParse.js +++ b/tests/unit/jsParse.js @@ -176,7 +176,7 @@ for (let i = 0; i < testsModifyScope.length; i++) { let matches = text.match(/(.*)\.(.*)/); if (matches) { - [expr, base, attrHead] = matches; + let [expr, base, attrHead] = matches; if (!JsParse.isUnsafeExpression(base)) { with (obj) {