react/fixtures/stacks
Sebastian Markbåge 72d00ab623
Fix Component Stacks for IE and Native Classes in Safari (#18575)
* Add more edge cases to fixture

Also adjust some expectations. I think the column should ideally be 1 but varies.
The Example row is one line off because it throws on the hook but should ideally be the component.
Similarly class components with constructors may have the line in the constructor.

* Account for the construct call taking a stack frame

We do this by first searching for the first different frame, then find
the same frames and then find the first different frame again.

* Throw controls

Otherwise they don't get a stack frame associated with them in IE.

* Protect against generating stacks failing

Errors while generating stacks will bubble to the root. Since this technique
is a bit sketchy, we should probably protect against it.

* Don't construct the thing that throws

Instead, we pass the prototype as the "this". It's new every time anyway.
2020-04-10 19:39:02 -07:00
..
BabelClasses-compiled.js Fix Component Stacks for IE and Native Classes in Safari (#18575) 2020-04-10 19:39:02 -07:00
BabelClasses-compiled.js.map Fix Component Stacks for IE and Native Classes in Safari (#18575) 2020-04-10 19:39:02 -07:00
BabelClasses.js Fix Component Stacks for IE and Native Classes in Safari (#18575) 2020-04-10 19:39:02 -07:00
Components.js Fix Component Stacks for IE and Native Classes in Safari (#18575) 2020-04-10 19:39:02 -07:00
Example.js Fix Component Stacks for IE and Native Classes in Safari (#18575) 2020-04-10 19:39:02 -07:00
babel.config.json Fix Component Stacks for IE and Native Classes in Safari (#18575) 2020-04-10 19:39:02 -07:00
index.html Fix Component Stacks for IE and Native Classes in Safari (#18575) 2020-04-10 19:39:02 -07:00