Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Index Out of Bounds #3

Open
AdamDanischewski opened this issue Oct 7, 2019 · 0 comments
Open

Index Out of Bounds #3

AdamDanischewski opened this issue Oct 7, 2019 · 0 comments

Comments

@AdamDanischewski
Copy link

Trying to generate an image from the demo.json in asciinema fails with the following:

/usr/bin/timeout
/mnt/samsung32/software/asciienma_stuff/a2png/main.js:181
f.lastIndexOf=function(){function a(a){return K(this,a,J(this))}var b=null;b=function(b,d){switch(arguments.length){case 1:return a.call(this,b);case 2:return K(this,b,d)}throw Error("Invalid arity: "+(arguments.length-1));};b.h=a;b.c=function(a,b){return K(this,a,b)};return b}();f.W=function(a,b){a=b+this.i;if(0<=a&&a<this.l.length)return this.l[a];throw Error("Index out of bounds");};f.$=function(a,b,c){a=b+this.i;return 0<=a&&a<this.l.length?this.l[a]:c};f.Ca=function(){return new id(this.l,this.i)};                                                                                                                                                                                                                                                                                                                                                             
^

Error: Index out of bounds
    at A.f.W (/mnt/samsung32/software/asciienma_stuff/a2png/main.js:181:359)
    at hd (/mnt/samsung32/software/asciienma_stuff/a2png/main.js:190:155)
    at Function.lp.A (/mnt/samsung32/software/asciienma_stuff/a2png/main.js:699:50)
    at Function.lp.L (/mnt/samsung32/software/asciienma_stuff/a2png/main.js:702:244)
    at R (/mnt/samsung32/software/asciienma_stuff/a2png/main.js:265:71)
    at /mnt/samsung32/software/asciienma_stuff/a2png/main.js:702:295
    at Object.<anonymous> (/mnt/samsung32/software/asciienma_stuff/a2png/main.js:703:3)

Eveything compiled fine - pulled the latest today. I get this error no matter what arguments are provided to a2png.sh.

$> ./a2png.sh /tmp/demo.json demo.png 
<above error> 
$> ./a2png.sh nonsense 
<above error> 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant