Skip to content

Commit a468658

Browse files
authored
Merge pull request reactjs#224 from reactjs/gaearon-patch-5
Suggest a smaller Function.name polyfill
2 parents bed5fda + 2c7c414 commit a468658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/error-boundaries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ If you don’t use Create React App, you can add [this plugin](https://www.npmjs
119119

120120
> Note
121121
>
122-
> Component names displayed in the stack traces depend on the [`Function.name`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name) property. If you support older browsers and devices which may not yet provide this natively (e.g. IE 11), consider including a global polyfill in your bundled application, such as [core-js](https://github.com/zloirock/core-js) or [babel-polyfill](https://babeljs.io/docs/usage/polyfill/). Alternatively, you may explicitly set the [`displayName`](/docs/react-component.html#displayname) property on all your components.
122+
> Component names displayed in the stack traces depend on the [`Function.name`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name) property. If you support older browsers and devices which may not yet provide this natively (e.g. IE 11), consider including a `Function.name` polyfill in your bundled application, such as [`function.name-polyfill`](https://github.com/JamesMGreene/Function.name). Alternatively, you may explicitly set the [`displayName`](/docs/react-component.html#displayname) property on all your components.
123123
124124

125125
## How About try/catch?

0 commit comments

Comments
 (0)