summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-10-05 11:08:29 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-10-05 11:08:29 +0200
commit30f1dc178a3554a5d468ae9b78ba71cf9eeab63b (patch)
tree434d3a780aea5e34ec014e66970d137df78cde75 /js
parent194f3449751b90c1f8d7ec3625ab26594bc808c6 (diff)
Fix iteration order in codeq.codePointCount
Diffstat (limited to 'js')
-rw-r--r--js/codeq/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/codeq/core.js b/js/codeq/core.js
index 72b4532..2d88f18 100644
--- a/js/codeq/core.js
+++ b/js/codeq/core.js
@@ -420,7 +420,7 @@
codeq.log.error(code);
return 0;
}
- for (i = s.length - 1; i >= 0; i--) {
+ for (i = 0; i < s.length; i++) {
try {
code = s.charCodeAt(i);
}