Fix error about IIFE if the function is in a new
Merge pull request #387 from Marsup/fix/iife_in_new

Fix error about IIFE if the function is in a new