prepack/test
Dominic Gannaway 273312ecd8 Improve the ReactElement logic for evaluation to improve folding cases
Summary:
Currently, there are too many cases where ReactElement evaluation bails out. This PR aims to solve many of those cases:

- [x] Ensure `props` have a deleted `key` and `ref`
- [x] Refactor JSX evaluation to properly handle and deal with JSX spreads
- [x] Ensure all react-tests run both transpiled and non-transpiled so the `React.createElement` route can be evaluated and tested
- [x] Refactor React.createElement mock to work like the JSX evaluator
- [x] Throw and error when we've detected cases where `key` and `ref` are abstract and not deleted or defined

Will do in a follow up PR once other PRs land:
- Ensure that we internally pass around `reactHint` in cases of `Object.assign`
Closes https://github.com/facebook/prepack/pull/1447

Differential Revision: D7049578

Pulled By: trueadm

fbshipit-source-id: 7f8330c8e4c47c5095b672f686cedc593852a6a8
2018-02-21 16:26:29 -08:00
..
error-handler Change PP0023 error code to PP0026 2018-02-21 15:02:35 -08:00
node-cli Add minimal test case for the node-cli mode 2017-05-18 15:08:39 -07:00
react Improve the ReactElement logic for evaluation to improve folding cases 2018-02-21 16:26:29 -08:00
residual Partial evaluator for calls (#713) 2017-06-12 13:07:50 -07:00
serializer Support simple partial object property deletion 2018-02-21 13:48:31 -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