| Module | CoffeeScript::Source |
| In: |
lib/coffee_script.rb
|
| COMPILE_FUNCTION_SOURCE | = | <<-JS ;function compile(script, options) { try { return CoffeeScript.compile(script, options); } catch (err) { if (err instanceof SyntaxError && err.location) { throw new SyntaxError([ err.filename || "[stdin]", err.location.first_line + 1, err.location.first_column + 1 ].join(":") + ": " + err.message) } else { throw err; } } } JS |