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
1 changed files with 5 additions and 1 deletions

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: