SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[compiler] Improve display of errors on multi-line expressions (#34963)

When a longer function or expression is identified as the source of an
error, we currently print the entire expression in our error message.
This is because we delegate to a Babel helper to print codeframes. Here,
we add some checking and abbreviate the result if it spans too many
lines.

DiffTrain build for [408b38ef7304faf022d2a37110c57efce12c6bad](https://github.com/facebook/react/commit/408b38ef7304faf022d2a37110c57efce12c6bad)
J
josephsavona committed
ec2bb7fc377121d456e2101547db733b8432e320
Parent: cd5995f