We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d5bee commit d1d6184Copy full SHA for d1d6184
packages/react-reconciler/src/ReactCapturedValue.js
@@ -52,7 +52,10 @@ export function createCapturedValue<T>(
52
digest: ?string,
53
stack: ?string,
54
): CapturedValue<T> {
55
- if (!hasOwnProperty.call(value, '_componentStack')) {
+ if (
56
+ Object.isExtensible((value: any)) &&
57
+ !hasOwnProperty.call(value, '_componentStack')
58
+ ) {
59
(value: any)._componentStack = stack;
60
}
61
return {
0 commit comments