Unfancy JavaScript
Go to file
Chris Connelly 3e70d31e5d Remove support for bound instance methods (#4530)
Bound methods are implemented as assignments to `this` in the
constructor. In derived classes, where `this` is unavailable until
after `super` has been called, the binding is applied and assigned after
the `super` call. This means that any references to 'bound' methods
reachable from the parent constructor will actually point to the unbound
prototype methods.

This can lead to very subtle bugs where a method that is thought to be
bound is handed off and later called with an incorrect context, and the
only defence is for users to be vigilant about referencing bound methods
in constructors.
2017-04-27 23:03:01 -07:00
bin Remove hyphen in `coffee-script` 2017-02-12 17:00:05 -08:00
docs [CS2] Replace Closure Compiler with Babili, transform browser compiler into ES5-ish (#4523) 2017-04-26 16:21:29 -07:00
documentation [CS2] Remove unnecessary utility helper functions (#4526) 2017-04-25 07:10:42 -07:00
lib/coffeescript Remove support for bound instance methods (#4530) 2017-04-27 23:03:01 -07:00
src Remove support for bound instance methods (#4530) 2017-04-27 23:03:01 -07:00
test Remove support for bound instance methods (#4530) 2017-04-27 23:03:01 -07:00
.gitignore Fix stack trace (#4428) 2017-01-22 13:20:18 -08:00
.nojekyll Move v1 documentation under `docs/v1`, with `docs/index.html` symlinking to `docs/v1/index.html` (with `.nojekyll` file to hopefully make the symlink work) 2016-11-15 20:54:30 -08:00
CONTRIBUTING.md Remove hyphen in `coffee-script` 2017-02-12 17:00:05 -08:00
Cakefile [CS2] Replace Closure Compiler with Babili, transform browser compiler into ES5-ish (#4523) 2017-04-26 16:21:29 -07:00
LICENSE Update copyright range to 2017 2017-01-04 00:34:28 -08:00
README.md [CS2] Fix links in v2 docs (#4506) 2017-04-17 19:43:22 -07:00
bower.json Remove hyphen in `coffee-script` 2017-02-12 17:00:05 -08:00
package.json [CS2] Replace Closure Compiler with Babili, transform browser compiler into ES5-ish (#4523) 2017-04-26 16:21:29 -07:00
register.js Remove hyphen in `coffee-script` 2017-02-12 17:00:05 -08:00
repl.js Remove hyphen in `coffee-script` 2017-02-12 17:00:05 -08:00

README.md

        {
     }   }   {
    {   {  }  }
     }   }{  {
    {  }{  }  }                    _____       __  __
   { }{ }{  { }                   / ____|     / _|/ _|
 .- { { }  { }} -.               | |     ___ | |_| |_ ___  ___
(  { } { } { } }  )              | |    / _ \|  _|  _/ _ \/ _ \
|`-..________ ..-'|              | |___| (_) | | | ||  __/  __/
|                 |               \_____\___/|_| |_| \___|\___|
|                 ;--.
|                (__  \            _____           _       _
|                 | )  )          / ____|         (_)     | |
|                 |/  /          | (___   ___ _ __ _ _ __ | |_
|                 (  /            \___ \ / __| '__| | '_ \| __|
|                 |/              ____) | (__| |  | | |_) | |_
|                 |              |_____/ \___|_|  |_| .__/ \__|
 `-.._________..-'                                  | |
                                                    |_|

CoffeeScript is a little language that compiles into JavaScript.

Installation

If you have the node package manager, npm, installed:

npm install --global coffeescript

Leave off the --global if you dont wish to install globally.

Getting Started

Execute a script:

coffee /path/to/script.coffee

Compile a script:

coffee -c /path/to/script.coffee

For documentation, usage, and examples, see: http://coffeescript.org/

To suggest a feature or report a bug: https://github.com/jashkenas/coffeescript/issues

If youd like to chat, drop by #coffeescript on Freenode IRC.

The source repository: https://github.com/jashkenas/coffeescript.git

Changelog: http://coffeescript.org/#changelog

Our lovely and talented contributors are listed here: https://github.com/jashkenas/coffeescript/contributors