mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
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
This commit is contained in:
parent
d565bc3e3f
commit
c404425d0f