Permalink
Browse files

removing spurious comment about rewinding behavior which is probably …

…a bad idea.
  • Loading branch information...
1 parent 468ba42 commit 02942411a052403ae3030ed991f0f220d262dbfd @jaekwon committed Jan 22, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 test/function_invocation.coffee
@@ -553,11 +553,15 @@ test "#1896: recursive implicit object braces and function parentheses", ->
f = makeFunc 'f'
g = makeFunc 'g'
whatisit = a: func b, {c: d}, e: f g h: e
- # We actually want:
- # expected = "{ a: 'func( b, { c: d }, { e: f( Function ), h: e } )' }"
expected = "{ a: 'func( b, { c: d }, { e: f( g( { h: e } ) ) } )' }"
eq inspect(whatisit), expected
+ local (f) ->
+ f = makeFunc 'f'
+ whatisit = a: func b, {c: d}, e: f g, h: e
+ expected = "{ a: 'func( b, { c: d }, { e: f( g, { h: e } ) } )' }"
+ eq inspect(whatisit), expected
+
# #1865
local (b) ->
whatisit = a: func (->),

0 comments on commit 0294241

Please sign in to comment.