                     })
                 catch # when `require` an inexistent module
                     null
+
             # when `require` a node core module
             if newFilePath? and newFilePath.search(/^[A-Za-z][A-Za-z0-9\-_]*$/) != -1
                 newFilePath = null
+
             if newFilePath?
                 if not filePathIndexesInMods[newFilePath]?
                     checkCode(newFilePath, requireString in dummies)

    mod.nameIndexes = {}
    mod.rawFilePath = filePath
    filePathIndexesInMods[filePath] = mods.length - 1
    parsed = esprima.parse("""
        (function(exports, module, require) {
        #{code}
        })();
    """, {tolerant: true})
    checkTreeNode = (node) ->
        if not (typeof node == "object" and node != null)
            return

        else
            Object.keys(node).forEach((m) -> checkTreeNode(node[m]))
    checkTreeNode(parsed)

# "674497323404793172" is to avoid naming conflicts.
writeOutput = ->
    modsBodyStr = mods.map((mod) ->
