Skip to content

Run properties set by index through the Array.items converter

Choose a tag to compare

@matthewp matthewp released this 18 Oct 18:41
· 40 commits to master since this release

When setting an item by index, it should run through the Array.items converter. This will do so now:

class MyArray {
  static items = type.convert(Number);
}

let arr = new MyArray();
arr[0] = "4";

console.log(arr[0]); // 4