adopted jashkenas/coffee-script#2814