aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/source-range.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-20 19:32:50 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-20 19:32:50 -0700
commit8416c9d633ed15f679c9871b9940731fb9a7b386 (patch)
tree1c951a141d1135266e8867d2b5ac1f5d442bf7a2 /ext/fg/js/source-range.js
parent18fc8d9865406a74dbea47f49ac959a543035ec7 (diff)
More cleanup
Diffstat (limited to 'ext/fg/js/source-range.js')
-rw-r--r--ext/fg/js/source-range.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/source-range.js b/ext/fg/js/source-range.js
index a25b3fdc..6d445f54 100644
--- a/ext/fg/js/source-range.js
+++ b/ext/fg/js/source-range.js
@@ -81,7 +81,7 @@ class TextSourceRange {
}
static seekForward(node, length) {
- const state = {node, offset: 0, length};
+ const state = {node, length, offset: 0};
if (!TextSourceRange.seekForwardHelper(node, state)) {
return state;
}
@@ -115,7 +115,7 @@ class TextSourceRange {
}
static seekBackward(node, length) {
- const state = {node, offset: node.length, length};
+ const state = {node, length, offset: node.length};
if (!TextSourceRange.seekBackwardHelper(node, state)) {
return state;
}