mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-31 22:41:42 +08:00
fix several lint warnings
Summary: fix some ling warnings from several files Closes https://github.com/facebook/react-native/pull/4450 Reviewed By: svcscm Differential Revision: D2707606 Pulled By: mkonicek fb-gh-sync-id: 410ccacf061ac7b0f6e44d1a5e4621a9d1d606fc
This commit is contained in:
committed by
facebook-github-bot-4
parent
8ec052a727
commit
0a3694ce48
@@ -53,7 +53,7 @@ function setUpConsole() {
|
||||
* For more info on that particular case, see:
|
||||
* https://github.com/facebook/react-native/issues/934
|
||||
*/
|
||||
function polyfillGlobal(name, newValue, scope=GLOBAL) {
|
||||
function polyfillGlobal(name, newValue, scope = GLOBAL) {
|
||||
var descriptor = Object.getOwnPropertyDescriptor(scope, name) || {
|
||||
// jest for some bad reasons runs the polyfill code multiple times. In jest
|
||||
// environment, XmlHttpRequest doesn't exist so getOwnPropertyDescriptor
|
||||
|
||||
Reference in New Issue
Block a user