jashkenas--coffeescript/test
Simon Lydell 6d9553a016 Implement ES2015-like destructuring defaults
This let's you do things like:

    fullName = ({first = 'John', last = 'Doe'}) -> "#{first} #{last}"

Note: CoffeeScrits treats `undefined` and `null` the same, and that's true in
the case of destructuring defaults as well, as opposed to ES2015 which only uses
the default value if the target is `undefined`. A similar ES2015 difference
already exists for function parameter defaults. It is important for CoffeeScript
to be consistent with itself.

    fullName2 = (first = 'John', last = 'Doe') -> "#{first} #{last}"
    assert fullName('Bob', null) is fullName2(first: 'Bob', last: null)

Fixes #1558, #3288 and #4005.
2015-08-27 22:16:13 +02:00
..
importing renaming import test files to avoid risking the disfavor of .gitignore 2013-06-02 10:57:18 +04:00
arrays.coffee Make regexes always uncallable 2015-01-15 19:44:14 +01:00
assignment.coffee Implement ES2015-like destructuring defaults 2015-08-27 22:16:13 +02:00
booleans.coffee renaming wordy test titles. 2011-04-23 13:35:15 -04:00
classes.coffee Fix #3597: Allow interpolations in object keys 2015-02-09 17:32:37 +01:00
cluster.coffee Fixes #2737, fix fork() for both .js and .coffee, revised. 2013-03-18 11:46:54 +08:00
comments.coffee allow multiline comment inside of an object definition [Fixes #3761] 2015-02-10 23:35:39 -05:00
compilation.coffee added descriptions to tests which only had Issue numbers 2015-02-23 16:39:05 -07:00
comprehensions.coffee Fix #3778: Make for loops more consistent 2015-02-03 19:05:07 +01:00
control_flow.coffee added descriptions to tests which only had Issue numbers 2015-02-23 16:39:05 -07:00
error_messages.coffee Implement ES2015-like destructuring defaults 2015-08-27 22:16:13 +02:00
eval.coffee Fix issue #3498 2015-01-05 15:40:04 -05:00
exception_handling.coffee #2900 -- parameter-less catch clause. 2013-04-12 17:50:45 +02:00
formatting.coffee Fixes chaining after inline implicit objects 2014-01-26 22:11:10 +00:00
function_invocation.coffee Fix #3935: Implicit calls + obj key interpolation 2015-05-01 12:02:03 +02:00
functions.coffee Implement ES2015-like destructuring defaults 2015-08-27 22:16:13 +02:00
generators.coffee yield now behaves as expected around 'this' - fixes https://github.com/jashkenas/coffeescript/issues/3882 2015-02-26 13:01:12 +01:00
helpers.coffee Replace `last array` helper with `[..., last] = array` 2015-02-07 21:50:41 +01:00
importing.coffee renaming import test files to avoid risking the disfavor of .gitignore 2013-06-02 10:57:18 +04:00
interpolation.coffee Fix #3795: Never generate invalid strings and regexes 2015-02-05 17:23:03 +01:00
javascript_literals.coffee finished reorganizing test suite 2011-01-03 04:17:00 -05:00
literate.litcoffee Fixes tabbed code test in literate 2013-05-15 10:30:20 +01:00
location.coffee Fix #3597: Allow interpolations in object keys 2015-02-09 17:32:37 +01:00
numbers.coffee fixes #2224: various issues related to number lexing 2012-03-27 21:31:20 -04:00
objects.coffee Fix #3597: Allow interpolations in object keys 2015-02-09 17:32:37 +01:00
operators.coffee Reset @seenFor in lexer before tokenizing 2015-07-07 22:23:26 -06:00
option_parser.coffee OptionParser and related tests needed a cleanup 2012-01-25 19:47:03 -05:00
ranges.coffee test for #1409 2011-06-02 01:49:28 -04:00
regexps.coffee Fix #3795: Never generate invalid strings and regexes 2015-02-05 17:23:03 +01:00
repl.coffee fixed overly fragile repl test to work with 0.12, see https://github.com/jashkenas/coffeescript/issues/3855 2015-02-17 11:36:24 +01:00
scope.coffee Improved the tests and removed the hardcoded variable, according to suggestions. 2015-08-16 21:27:28 +01:00
slicing_and_splicing.coffee Fix #2953. Method calls on splice endpoints 2013-04-23 05:42:37 +02:00
soaks.coffee added descriptions to tests which only had Issue numbers 2015-02-23 16:39:05 -07:00
sourcemap.coffee Quick spelling fixes 2014-08-26 20:41:32 -05:00
strict.coffee Implement ES2015-like destructuring defaults 2015-08-27 22:16:13 +02:00
strings.coffee Fix single-line heredocs starting with "undefined" 2015-02-18 17:40:40 +01:00
test.html encode unicode src, test added 2013-03-21 09:04:23 +08:00