mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
408b38ef73
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.