Skip to content

Commit 632a943

Browse files
committed
[javascript mode] Fix use of let
1 parent 4c30e11 commit 632a943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/javascript/javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
198198
} else if (/["'\/]/.test(ch)) {
199199
for (;; --pos) {
200200
if (pos == 0) return
201-
let next = stream.string.charAt(pos - 1)
201+
var next = stream.string.charAt(pos - 1)
202202
if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break }
203203
}
204204
} else if (sawSomething && !depth) {

0 commit comments

Comments
 (0)