Add an additonal test, courtesy @matehat

This commit is contained in:
Jeremy Ashkenas
2013-03-07 23:10:39 +13:00
parent 67de35ff29
commit 8b134cf348

View File

@@ -754,3 +754,10 @@ test "#2781: overriding bound functions", ->
b = (new B).b
eq b(), 2
test "#2791: bound function with destructured argument", ->
class Foo
method: ({a}) => 'Bar'
eq (new Foo).method({a: 'Bar'}), 'Bar'