jashkenas/coffee-script — Issue #2183: Calling a constructor on a built-in type using splats fails
Author: bilts
Created: 2012-03-07 18:16:43+00:00
State: open

date = [2010, 00, 01]
console.log(new Date(date[0], date[1], date[2]))
console.log(new Date(date...))

The third line above fails. This seems related to issue #667, but that fix only addresses CoffeeScript classes. Splats still fail for built-in classes like Date.