                                         property: create_identifier sym
 
                         @mappings.unshift new_mapping
-                        super
+                        @visitFunctionBody n
+                        n.body.body = prepends.concat n.body.body
                         @mappings = @mappings.slice(1)
 
                 # we need to replace function declarations of the form:

                                                properties: []
                                }],
                                kind: "var"

                        if n.ejs_env.parent?
                                n.body.body.splice 1, 0, {
                                        type: syntax.ExpressionStatement
                                        expression:
                                                type: syntax.AssignmentExpression,

                        # we need to push assignments of any closed over parameters into the environment at this point
                        for param in n.params
                                if n.ejs_env.closed.member param.name
                                        prepends.push {
                                                type: syntax.ExpressionStatement
                                                expression:
                                                        type: syntax.AssignmentExpression,
