{"shas":[["027fb7a36e0e861afac6f386f3ebc3e094e70655","fe6a7a3d50ad395ee59e2de3dcb0b57c30476c48@fb.com","[Fix] Fix some issues with type inference for closures\n\nSummary:\nThis diff fixes several issues with type inference for\nclosures:\n\n  1. If a closure function needed to be reprocessed a second time,\n     the begin/end local scheme would not respect previous force\n     variants called on referenced use variable symbols. This diff\n     fixes this problem by bootstrapping a symbols type with the\n     type of the parameter use variables in the enclosing scope.\n\n  2. The UseKindClosure dependency would not trigger if a function scope\n     was re-processed a second time (meaning dependent scopes of the\n     UseKindClosure were not updated)\n\n  3. Closure generator use vars are now properly bootstrapped with\n     the type of the surrounding (closure) environment.\n\nAdditionally, this diff fixes a circular dependency memory leak with\ncontinuation AST function statement nodes holding references to their\nanonymous function statement AST nodes and vice-versa.\n\nTest Plan:\nslow_tests, make sure www compiles and does not generate\nworse code for closures\n\nReviewed By: mwilliams\nReviewers: mwilliams, myang, qigao\nCC: ps, mwilliams\nRevert Plan:\nTags:\n\n- begin *PUBLIC* platform impact section -\nBugzilla: #\n- end platform impact -\n\nDifferential Revision: 289571","stephentu"],["8a55b72f0e50289b6acbd5fd52679319565e9293","fe6a7a3d50ad395ee59e2de3dcb0b57c30476c48@fb.com","[Fix] Last commit to fix closure expression type-inference forgot to not clone\nclosure variables\n\nSummary:\nDon't clone closure vars, since they are set in the function\nscope and shared between different scopes\n\nTest Plan: slow_tests\nReviewed By: mwilliams\nReviewers: mwilliams, myang, qigao\nCC: ps, mwilliams\nRevert Plan:\nTags:\n\n- begin *PUBLIC* platform impact section -\nBugzilla: #\n- end platform impact -\n\nDifferential Revision: 289862","stephentu"]],"ref":"refs/heads/master","size":2,"head":"8a55b72f0e50289b6acbd5fd52679319565e9293","push_id":37714269}