From 09adaf419347ee69ac5dad816eb2da697f8f6106 Mon Sep 17 00:00:00 2001
From: Marijn Haverbeke <marijn@haverbeke.nl>
Date: Tue, 23 May 2017 19:21:22 +0200
Subject: [PATCH] Fix ES6-isms in test.js

---
 test/test.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/test.js b/test/test.js
index 06f211c2..d1abc7a8 100644
--- a/test/test.js
+++ b/test/test.js
@@ -1893,13 +1893,13 @@ testCM("addKeyMap", function(cm) {
 }, {value: "abc"});
 
 function mouseDown(cm, button, pos, mods) {
-  let coords = cm.charCoords(pos, "window")
-  let event = {type: "mousedown",
+  var coords = cm.charCoords(pos, "window")
+  var event = {type: "mousedown",
                preventDefault: Math.min,
                which: button,
                target: cm.display.lineDiv,
                clientX: coords.left, clientY: coords.top}
-  if (mods) for (let prop in mods) event[prop] = mods[prop]
+  if (mods) for (var prop in mods) event[prop] = mods[prop]
   cm.triggerOnMouseDown(event)
 }
 
-- 
GitLab