prepack/scripts
Dominic Gannaway cde1af298d Do not mutate arrays or ReactElements during React reconciliation
Summary:
Release notes: none

This fixes an issue that we were experiencing, that turned out to be the correct fix after looking at https://github.com/facebook/prepack/pull/1997. We shouldn't mutate arrays in the reconciliation process, instead we should create new ones when we have new values. Also, we should ensure that we don't mutate ReactElements during reconciliation too, instead we should just create new ones. Mutating existing objects and values breaks down completely when we enter nested effects that need to re-evaluate the same original values, so this fixes a bunch of internal issues we were seeing on our internal FB bundle.
Closes https://github.com/facebook/prepack/pull/1999

Differential Revision: D8105499

Pulled By: trueadm

fbshipit-source-id: 4e6ceb8b02c886c42156a8903c347765f101c840
2018-05-22 16:35:40 -07:00
..
__snapshots__ Do not mutate arrays or ReactElements during React reconciliation 2018-05-22 16:35:40 -07:00
debug-fb-www.js Ensures all serializer test case output passes linting validation 2018-05-22 15:41:31 -07:00
detect_bad_deps.js Aligning serializer with visitor for modified object properties 2018-05-02 10:53:59 -07:00
generate-sourcemaps-test.js Always emit globals safe for strict mode 2018-05-22 09:37:11 -07:00
instrumentor.js Always use fast traversal function when trivially possible. 2017-07-24 16:39:31 -07:00
lint-config.js Ensures all serializer test case output passes linting validation 2018-05-22 15:41:31 -07:00
multi-runner.js Fix prettier and lint failures 2017-10-23 00:00:47 -07:00
prettier.js Making Prettier a check-in gate 2017-07-07 11:35:32 -07:00
publish-gh-pages.sh Update build command to explictly invoke yarn build 2018-05-22 04:31:58 -07:00
test262-filters.yml Use integration api to run Test262 tests 2017-12-01 17:46:29 -08:00
test262-runner.js Implement const/let pattern declarations (ES6 destructuring) 2018-05-16 10:33:19 -07:00
test262.js Fixes Prettier issues on master 2018-04-19 08:53:06 -07:00
test-error-handler.js Removing --abstractEffectsInAdditionalFunctions option 2018-03-20 15:04:24 -07:00
test-internal-react.js Add React-related internal regression test to Prepack 2018-04-23 09:09:00 -07:00
test-internal.js Fixes Prettier issues on master 2018-04-19 08:53:06 -07:00
test-node-cli-mode.sh Add minimal test case for the node-cli mode 2017-05-18 15:08:39 -07:00
test-react.js Do not mutate arrays or ReactElements during React reconciliation 2018-05-22 16:35:40 -07:00
test-residual.js Partial evaluation of throw statements 2018-02-22 12:31:52 -08:00
test-runner.js Ensures all serializer test case output passes linting validation 2018-05-22 15:41:31 -07:00
test-sourcemaps.sh Extract scripts from npm package (#463) 2017-04-26 12:26:18 -07:00
test-std-in.sh fix #1239 - Command-line based syntax errors now print location 2017-12-18 13:56:26 -08:00