react-native/Libraries/polyfills
Kashav Madan c404425d0f Improve spacing in polyfill error messages
Summary:
<!--
Thank you for sending the PR!

If you changed any code, please provide us with clear instructions on how you verified your changes work. In other words, a test plan is *required*. Bonus points for screenshots and videos!

Please read the Contribution Guidelines at https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md to learn more about contributing to React Native.

Happy contributing!
-->

Noticed a lack of spacing in the following error message:

```
In this environment the sources for assign MUST be an object.This error is a performance optimization and not spec compliant.
TypeError: In this environment the sources for assign MUST be an object.This error is a performance optimization and not spec compliant.
    at Object.assign (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:230:15)
    at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:134559:46
    at Array.map (native)
    at GridComponent._callee$ (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:134554:58)
    at tryCatch (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7388:40)
    at Generator.invoke [as _invoke] (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7576:22)
    at Generator.prototype.(anonymous function) [as next] (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7413:21)
    at tryCatch (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7388:40)
    at invoke (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7446:20)
    at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7476:11
```

Tested by updating the message locally in `/path/to/rn-project/node_modules/react-native/packager/src/Resolver/polyfills/Object.es6.js`.
Closes https://github.com/facebook/react-native/pull/15166

Differential Revision: D5481475

Pulled By: javache

fbshipit-source-id: f3e4e482a8ee61d52e8c3e0c5f038b1109bd1113
2017-08-10 03:56:01 -07:00
..
__tests__ Move polyfills to react-native 2017-07-11 03:47:16 -07:00
Array.es6.js Remove default polyfills from metro-bundler 2017-07-17 03:20:02 -07:00
Array.prototype.es6.js Remove default polyfills from metro-bundler 2017-07-17 03:20:02 -07:00
Number.es6.js Remove default polyfills from metro-bundler 2017-07-17 03:20:02 -07:00
Object.es6.js Improve spacing in polyfill error messages 2017-08-10 03:56:01 -07:00
Object.es7.js Remove default polyfills from metro-bundler 2017-07-17 03:20:02 -07:00
String.prototype.es6.js Remove default polyfills from metro-bundler 2017-07-17 03:20:02 -07:00
babelHelpers.js Remove default polyfills from metro-bundler 2017-07-17 03:20:02 -07:00
console.js Make console work with JS engines which use print 2017-08-09 18:03:39 -07:00
error-guard.js Remove default polyfills from metro-bundler 2017-07-17 03:20:02 -07:00