react/scripts/rollup/validate
Sebastian Markbåge 98d410f500
Build Component Stacks from Native Stack Frames (#18561)
* Implement component stack extraction hack

* Normalize errors in tests

This drops the requirement to include owner to pass the test.

* Special case tests

* Add destructuring to force toObject which throws before the side-effects

This ensures that we don't double call yieldValue or advanceTime in tests.

Ideally we could use empty destructuring but ES lint doesn't like it.

* Cache the result in DEV

In DEV it's somewhat likely that we'll see many logs that add component
stacks. This could be slow so we cache the results of previous components.

* Fixture

* Add Reflect to lint

* Log if out of range.

* Fix special case when the function call throws in V8

In V8 we need to ignore the first line. Normally we would never get there
because the stacks would differ before that, but the stacks are the same if
we end up throwing at the same place as the control.
2020-04-10 13:32:12 -07:00
..
eslintignore Jest + test renderer helpers for concurrent mode (#13751) 2018-10-03 18:37:41 -06:00
eslintrc.cjs.js Build Component Stacks from Native Stack Frames (#18561) 2020-04-10 13:32:12 -07:00
eslintrc.fb.js Build Component Stacks from Native Stack Frames (#18561) 2020-04-10 13:32:12 -07:00
eslintrc.rn.js Build Component Stacks from Native Stack Frames (#18561) 2020-04-10 13:32:12 -07:00
eslintrc.umd.js Build Component Stacks from Native Stack Frames (#18561) 2020-04-10 13:32:12 -07:00
index.js Don't build non-experimental www bundles (#17139) 2019-10-18 14:36:59 -07:00