mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove unused promiseRejectionIsError
Summary: Changelog: [Internal] Reviewed By: MichaReiser Differential Revision: D26338073 fbshipit-source-id: 7b4d8881ffc58ee93b1ccf58e6717a4a8597dece
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cb0764eeb0
commit
a8b5b63d4e
@@ -1,24 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
* @flow strict
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
require('./Promise'); // make sure the default rejection handler is installed
|
||||
const rejectionTracking = require('promise/setimmediate/rejection-tracking');
|
||||
|
||||
module.exports = () => {
|
||||
rejectionTracking.enable({
|
||||
allRejections: true,
|
||||
onUnhandled: (id, error) => {
|
||||
console.error(error);
|
||||
},
|
||||
onHandled: () => {},
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user