Invalid attempt to spread non-iterable instance.
I was trying to create a few custom macros, but then this weird error appeared.
An internal error occurred while trying to run (set: $start to (macro: array-type _player, [ (set: _monster to (
create: 2nd of _player, (either:...
dungeon))) (out:)[(set: $monster to _monster)] ])). The error was "Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a Symbol.iterator method.". If this is the latest version of Harlowe, please consider reporting a bug (see the documentation).
An internal error occurred while trying to run (set: $end to (macro: num-type _enemylvl, [ (out:)[(if: (random:9) is 9)[(set: $inv to it+(a:(either:"Potion", "Bomb")))] (set: $exp to it+(_enemylvl*((random:100,1000)/100))) (if: $exp >= (2nd of
player * 100))[(
levelup:$player)] ($start: $player)] ])). The error was "Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a Symbol.iterator method.". If this is the latest version of Harlowe, please consider reporting a bug (see the documentation).