ErrorUtils.js.flow 544 B

12345678910111213141516171819202122232425
  1. /**
  2. * Copyright (c) 2013-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @providesModule ErrorUtils
  8. */
  9. /* jslint unused:false */
  10. if (global.ErrorUtils) {
  11. module.exports = global.ErrorUtils;
  12. } else {
  13. var ErrorUtils = {
  14. applyWithGuard(callback, context, args, onError, name) {
  15. return callback.apply(context, args);
  16. },
  17. guard(callback, name) {
  18. return callback;
  19. }
  20. };
  21. module.exports = ErrorUtils;
  22. }