mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
added another test for #1416
This commit is contained in:
committed by
Michael Ficarra
parent
18f6ad9583
commit
9d3510a1e4
@@ -495,3 +495,8 @@ test "#1420: things like `(fn() ->)`; there are no words for this one",
|
||||
test "#1416: don't omit one 'new' when compiling 'new new'", ->
|
||||
obj = new new Function "this.foo = 3"
|
||||
eq obj.foo, 3
|
||||
|
||||
test "#1416: don't omit one 'new' when compiling 'new new fn()()'", ->
|
||||
fn = -> -> @a = 2
|
||||
{a} = new new fn()()
|
||||
eq a, 2
|
||||
|
||||
Reference in New Issue
Block a user