coffee-script.jsのコンパイルでsyntax errorが出た行を取得する方法

s="";
s+="f=->\n";
s+="  alert[ 'Hello. #{language}.'\n";

try
{
	compiled = CoffeeScript.compile(s);
	console.log(compiled);
} catch(e) {
	console.log(e.location.first_line);
	console.log(e.location.first_column);
	console.log(e.message);
}