mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
diff --git a/node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js b/node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js
|
|
index 63701e7..d3498da 100644
|
|
--- a/node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js
|
|
+++ b/node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js
|
|
@@ -73,14 +73,23 @@ function deepFreezeAndThrowOnMutationInDev<T: {...} | Array<mixed>>(
|
|
/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
|
|
* LTI update could not be added via codemod */
|
|
function throwOnImmutableMutation(key: empty, value) {
|
|
- throw Error(
|
|
- 'You attempted to set the key `' +
|
|
+ // Suppressed mutation error for development
|
|
+ console.warn(
|
|
+ 'Attempted to set the key `' +
|
|
key +
|
|
'` with the value `' +
|
|
JSON.stringify(value) +
|
|
'` on an object that is meant to be immutable ' +
|
|
'and has been frozen.',
|
|
);
|
|
+ // throw Error(
|
|
+ // 'You attempted to set the key `' +
|
|
+ // key +
|
|
+ // '` with the value `' +
|
|
+ // JSON.stringify(value) +
|
|
+ // '` on an object that is meant to be immutable ' +
|
|
+ // 'and has been frozen.',
|
|
+ // );
|
|
}
|
|
|
|
function identity(value: mixed) {
|