Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11f2cd4

Browse files
committed
test for jashkenas#1416: don't omit one 'new' when compiling 'new new'
1 parent 25e7eea commit 11f2cd4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/function_invocation.coffee

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,3 +491,7 @@ test "#1420: things like `(fn() ->)`; there are no words for this one",
491491
fn = -> (f) -> f()
492492
nonce = {}
493493
eq nonce, (fn() -> nonce)
494+
495+
test "#1416: don't omit one 'new' when compiling 'new new'", ->
496+
obj = new new Function "this.foo = 3"
497+
eq obj.foo, 3

0 commit comments

Comments
 (0)