1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Adding a test for Issue #669

This commit is contained in:
Jeremy Ashkenas 2010-09-08 20:25:17 -04:00
parent 70cfd54ad4
commit 44618d5765

View file

@ -48,7 +48,11 @@ class OneClass
class TwoClass extends OneClass
ok (new TwoClass('three')).name is 'three'
Function.prototype.new = -> new this arguments...
ok (TwoClass.new('three')).name is 'three'
delete Function.prototype.new
# And now the same tests, but written in the manual style: