mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 23:55:23 +00:00
Temporarily patched Map/Set non-extensible check into RN dev renderer
Reviewed By: jingc Differential Revision: D6461125 fbshipit-source-id: 8b30a22db4e357717f1c4f4e21a85ddef02d97d1
This commit is contained in:
parent
71006f74cd
commit
a99f0d6100
@ -4903,7 +4903,8 @@ var AsyncUpdates = 1;
|
||||
try {
|
||||
var nonExtensibleObject = Object.preventExtensions({});
|
||||
/* eslint-disable no-new */
|
||||
|
||||
new Map([[nonExtensibleObject, null]]);
|
||||
new Set([nonExtensibleObject]);
|
||||
/* eslint-enable no-new */
|
||||
} catch (e) {
|
||||
// TODO: Consider warning about bad polyfills
|
||||
|
Loading…
x
Reference in New Issue
Block a user