Permalink
Browse files

Temporarily patched Map/Set non-extensible check into RN dev renderer

Reviewed By: jingc

Differential Revision: D6461125

fbshipit-source-id: 8b30a22db4e357717f1c4f4e21a85ddef02d97d1
  • Loading branch information...
bvaughn authored and facebook-github-bot committed Dec 5, 2017
1 parent 71006f7 commit a99f0d6100c9779f5f6df6008af54c06113355f6
Showing with 2 additions and 1 deletion.
  1. +2 −1 Libraries/Renderer/ReactNativeRenderer-dev.js
@@ -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

0 comments on commit a99f0d6

Please sign in to comment.