allowing paren-less instance creation, a la 'new Class'

This commit is contained in:
Jeremy Ashkenas
2010-06-29 21:03:50 -04:00
parent 7c426db36a
commit 7d79d73b58
11 changed files with 149 additions and 144 deletions

View File

@@ -89,7 +89,7 @@ class Child extends Parent
nums: [3, 2, 1]
super nums...
ok (new Child()).meth().join(' ') is '3 2 1'
ok (new Child).meth().join(' ') is '3 2 1'
# Functions with splats being called with too few arguments.