mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 11:01:25 -05:00
Fixing first part of #614 -- improperly cached existential operator, when first operand is a function call.
This commit is contained in:
@@ -17,9 +17,13 @@ ok a is 10 and b is 10
|
||||
# The existential operator.
|
||||
z = null
|
||||
x = z ? "EX"
|
||||
|
||||
ok z is null and x is "EX"
|
||||
|
||||
i = 9
|
||||
func = -> i += 1
|
||||
result = func() ? 101
|
||||
ok result is 10
|
||||
|
||||
|
||||
# Only evaluate once.
|
||||
counter = 0
|
||||
|
||||
Reference in New Issue
Block a user