Skip to content

Commit 07ae1ed

Browse files
[CS2] Remove unnecessary utility helper functions (#4526)
* Uncomment module test that was waiting for classes to be supported * Rely on native indexOf * Replace `bind` helper with native `bind` (no shortcut necessary) * Update output * Update modules class tests * Remove helper for prototype extends * Update docs to reflect removed extends operator * Add shortcut for splice, like we have for slice
1 parent 7e35c2c commit 07ae1ed

File tree

12 files changed

+72
-98
lines changed

12 files changed

+72
-98
lines changed

documentation/sections/prototypal_inheritance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Prototypal Inheritance
22

3-
In addition to supporting ES2015 classes, CoffeeScript provides a few shortcuts for working with prototypes. The `extends` operator can be used to create an inheritance chain between any pair of constructor functions, and `::` gives you quick access to an object’s prototype:
3+
In addition to supporting ES2015 classes, CoffeeScript provides a shortcut for working with prototypes. The `::` operator gives you quick access to an object’s prototype:
44

55
```
66
codeFor('prototypes', '"one_two".dasherize()')

lib/coffeescript/browser.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/coffeescript/command.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/coffeescript/grammar.js

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/coffeescript/lexer.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/coffeescript/nodes.js

+14-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)