Skip to content

Commit

Permalink
test for jashkenas#1416: don't omit one 'new' when compiling 'new new'
Browse files Browse the repository at this point in the history
  • Loading branch information
thejh committed Jun 20, 2011
1 parent 25e7eea commit 11f2cd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/function_invocation.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,7 @@ test "#1420: things like `(fn() ->)`; there are no words for this one",
fn = -> (f) -> f()
nonce = {}
eq nonce, (fn() -> nonce)

test "#1416: don't omit one 'new' when compiling 'new new'", ->
obj = new new Function "this.foo = 3"
eq obj.foo, 3

0 comments on commit 11f2cd4

Please sign in to comment.