prepack/test
Jeffrey Tan 084e51ff17 Fix additional function mutable binding function scope
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
2017-12-28 16:09:27 -08:00
..
error-handler Provide for intrinsic abstract arrays 2017-12-23 11:09:17 -08:00
node-cli Add minimal test case for the node-cli mode 2017-05-18 15:08:39 -07:00
react Hoist and re-use React Elements when it's safe to do so 2017-12-15 08:08:19 -08:00
residual Partial evaluator for calls (#713) 2017-06-12 13:07:50 -07:00
serializer Fix additional function mutable binding function scope 2017-12-28 16:09:27 -08:00
source-maps Initial commit 2017-03-28 20:52:41 -07:00
std-in fix #1239 - Command-line based syntax errors now print location 2017-12-18 13:56:26 -08:00
test262@098f9ca3de Initial commit 2017-03-28 20:52:41 -07:00