Skip to content

Commit

Permalink
test for #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 authored and michaelficarra committed Jul 7, 2011
1 parent d32c060 commit 4c70ea5
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 4c70ea5

Please sign in to comment.