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:
Brian Vaughn 2017-12-05 12:23:42 -08:00 committed by Facebook Github Bot
parent 71006f74cd
commit a99f0d6100

View File

@ -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