Reuse walk_tree in nodejs compiler