mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-09-17 18:17:29 +03:00
084e51ff17
Summary: Release Note: none Fix #1238 The behavior of the bug is that, get_scope_binding() helper function is generated in wrong scope: global scope instead of additional function scope. It happens because there are two scopes referencing it, additional function itself and its parent generator scope. The second one is problematic because "obj" is not referenced in parent generator scope. We should visitPropertiesAndBindings only from additional function scope itself instead of parent generator scope. [The changes in react compiler]: with above change, all the hoistable react elements will be in additional function's parent generator scope so align the change in the react/hoisting.js file. Closes https://github.com/facebook/prepack/pull/1291 Differential Revision: D6643868 Pulled By: yinghuitan fbshipit-source-id: c14ab00792e530bdd592052d012434957defd01f |
||
---|---|---|
.. | ||
error-handler | ||
node-cli | ||
react | ||
residual | ||
serializer | ||
source-maps | ||
std-in | ||
test262@098f9ca3de |