aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/source-range.js
diff options
context:
space:
mode:
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;
}