diff --git a/assets/bios/tandemport.js b/assets/bios/tandemport.js index b488a4b..09e8359 100644 --- a/assets/bios/tandemport.js +++ b/assets/bios/tandemport.js @@ -27,7 +27,7 @@ con.mvaddch(y+1,1+x*8+7-b,imgc[(imgh[y][x]>>b&1)<<1|imgl[y][x]>>b&1]) con.move(8,1+(40-t.length>>1)) print(t) // wait arbitrary time -for (let b=0;b { @@ -84,6 +87,10 @@ object VMRunnerFactory { override suspend fun evalGlobal(command: String) { context.eval("js", "\"use strict\";" + sanitiseJS(command)) } + + override fun close() { + context.close(true) + } } } else -> throw UnsupportedOperationException("Unsupported script extension: $extension")