mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Iterate over expectedFeatures correctly
This fails if Array.prototype is extended.
This commit is contained in:
committed by
Paul O’Shannessy
parent
326be2faa6
commit
5b4e2be867
@@ -130,7 +130,7 @@ if (__DEV__) {
|
||||
Object.freeze
|
||||
];
|
||||
|
||||
for (var i in expectedFeatures) {
|
||||
for (var i = 0; i < expectedFeatures.length; i++) {
|
||||
if (!expectedFeatures[i]) {
|
||||
console.error(
|
||||
'One or more ES5 shim/shams expected by React are not available: ' +
|
||||
|
||||
Reference in New Issue
Block a user