Skip to content

Commit

Permalink
Temporarily patched Map/Set non-extensible check into RN dev renderer
Browse files Browse the repository at this point in the history
Reviewed By: jingc

Differential Revision: D6461125

fbshipit-source-id: 8b30a22db4e357717f1c4f4e21a85ddef02d97d1
  • Loading branch information
Brian Vaughn authored and facebook-github-bot committed Dec 5, 2017
1 parent 71006f7 commit a99f0d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/Renderer/ReactNativeRenderer-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a99f0d6

Please sign in to comment.