Bug 958804 - Properly handle lazy functions in GenerateScopeChainGuard. r=jandem

--HG--
extra : rebase_source : daa5fedc69972d2c1bd7a8d36f294d0e2de679b4