aboutsummaryrefslogtreecommitdiff
path: root/lux-js
diff options
context:
space:
mode:
authorEduardo Julian2021-08-18 03:29:15 -0400
committerEduardo Julian2021-08-18 03:29:15 -0400
commite00ba096c8837abe85d366e0c1293c09dbe84d81 (patch)
treedc1f0955d4461ae30bb4945cddd74c462f1aee98 /lux-js
parent3289b9dcf9d5d1c1e5c380e3185065c8fd32535f (diff)
Some bug fixes.
Diffstat (limited to 'lux-js')
-rw-r--r--lux-js/source/program.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/lux-js/source/program.lux b/lux-js/source/program.lux
index 22e12f197..2bc4f4a49 100644
--- a/lux-js/source/program.lux
+++ b/lux-js/source/program.lux
@@ -327,18 +327,18 @@
(#.Some member)
(case (ffi.check org/openjdk/nashorn/internal/runtime/Undefined member)
(#.Some _)
- (recur (inc idx) output)
+ (recur (++ idx) output)
#.None
(case (lux_object member)
(#try.Success parsed_member)
- (recur (inc idx) (array.write! idx (:as java/lang/Object parsed_member) output))
+ (recur (++ idx) (array.write! idx (:as java/lang/Object parsed_member) output))
(#try.Failure error)
#.None))
#.None
- (recur (inc idx) output))
+ (recur (++ idx) output))
(#.Some output))))
#.None))