mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-26 23:29:11 -05:00
test for #1416: don't omit one 'new' when compiling 'new new'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user