Remove problematic code

This commit is contained in:
Nathan Bierema 2021-10-21 19:59:30 -04:00
parent 1b87ca46d9
commit 7dfbf20242
2 changed files with 0 additions and 23 deletions

View File

@ -68,10 +68,6 @@ export default class StackTraceTab<
getStackFrames(deserializedError) getStackFrames(deserializedError)
.then((stackFrames) => { .then((stackFrames) => {
/* eslint-disable no-console */
if (process.env.NODE_ENV === 'development')
console.log('Stack frames: ', stackFrames);
/* eslint-enable no-console */
this.setState({ this.setState({
stackFrames: stackFrames!, stackFrames: stackFrames!,
currentError: deserializedError, currentError: deserializedError,

View File

@ -1,19 +0,0 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
if (typeof Promise === 'undefined') {
// Rejection tracking prevents a common issue where React gets into an
// inconsistent state due to an error, but it gets swallowed by a Promise,
// and the user has no idea what causes React's erratic future behavior.
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('promise/lib/rejection-tracking').enable();
window.Promise = require('promise/lib/es6-extensions.js');
}
// Object.assign() is commonly used with React.
// It will use the native implementation if it's present and isn't buggy.
Object.assign = require('object-assign');