Dirk @ddv.tools · Feb 8

The switch-implementation is not fully complete yet. We don't evaluate any `case` blocks after the default-case yet. Making this post revealed a bug in CompletionRecord-handling. The `break;` value is returned from the script instead of the final statement. Got that fixed now as well.

0 likes 1 replies

?

Replies

Dirk · Feb 8

And the combination of try-catch, Array#map and Function#bind brings the following. With a TIL: Array#map works on many object-likes that have the `{ length }` property. Note that the callback is only called here if the element of an index exists as well. Otherwise, use `Array.from({ length })`.