                                 create_intrinsic "setGlobal", [lhs, new_rhs]
                 else
                         n.left = @visit n.left
+                        n.right = new_rhs
                         n
                         
 

#
class LambdaLift extends TreeTransformer
        constructor: (@filename) ->
                super
                @functions = []
                @mappings = new Stack

        currentMapping: -> if @mappings.depth > 0 then @mappings.top else Object.create null


                for property in n.properties
                        property.value = @visit property.value
                n

        visitAssignmentExpression: (n) ->
                lhs = n.left
                rhs = @visit n.right
