running cacheindexes on soaks that need them.

This commit is contained in:
Jeremy Ashkenas
2010-09-12 16:18:05 -04:00
parent 61a39e04fc
commit 38ce0cfd9a
3 changed files with 42 additions and 6 deletions

View File

@@ -77,6 +77,17 @@ ok result is '10'
ok(process.exit.nothing?.property() or 101)
counter = 0
func = ->
counter += 1
'prop'
obj =
prop: -> this
value: 25
ok obj[func()]()[func()]()[func()]()?.value is 25
ok counter is 3
# Soaks inner values.
ident = (obj) -> obj