diff --git a/test/function_invocation.coffee b/test/function_invocation.coffee index d4ff8e1f89..fbf2ff7c1c 100644 --- a/test/function_invocation.coffee +++ b/test/function_invocation.coffee @@ -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