[MERGE #3973] Merge fix and don't emit inner scopes if the current function is already emitted
[MERGE #3973] Merge fix and don't emit inner scopes if the current function is already emitted

Merge pull request #3973 from aneeshdk:MergeFix
If the current function already has a valid bytecode then we don't have to emit the inner functions again.

Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore