mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add String.prototype.trim to polyfill check
Also shortens the URL so it fits on 1 line
This commit is contained in:
@@ -104,6 +104,7 @@ if (__DEV__) {
|
||||
Function.prototype.bind,
|
||||
Object.keys,
|
||||
String.prototype.split,
|
||||
String.prototype.trim,
|
||||
|
||||
// shams
|
||||
Object.create,
|
||||
@@ -114,8 +115,7 @@ if (__DEV__) {
|
||||
if (!expectedFeatures[i]) {
|
||||
console.error(
|
||||
'One or more ES5 shim/shams expected by React are not available: ' +
|
||||
'http://facebook.github.io/react/docs/working-with-the-browser.html' +
|
||||
'#polyfills-needed-to-support-older-browsers'
|
||||
'http://fb.me/react-warning-polyfills'
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user