Bug 951632 - Fix shell metadata hook to skip functions from other compartments. r=luke

--HG--
extra : rebase_source : c1b5d5fdde8748890cc6179d7d0676c809c4939b
Bug 956156 - Fix FinishDefinitePropertiesAnalysis to not assert if a script is compiled more than once. r=shu

--HG--
extra : rebase_source : de9dde08065e866c0ce1007798c83eb1646d51e6