jashkenas/coffee-script — Issue #1791: Make range slice generic
Author: edvakf
Created: 2011-10-22 05:15:24+00:00
State: open

I wand to use range slice for non-arrays.

a = new Uint8Array(10)
a[1...3]

Right now it's converted as

a.slice(1, 3);

but I want it to be

var __slice = Array.prototype.slice; __slice.call(a, 1, 3);