Skip to content

Commit

Permalink
Remove global babelHelpers and regenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Sep 24, 2018
1 parent afb7fc2 commit b9798d6
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 623 deletions.
2 changes: 0 additions & 2 deletions IntegrationTests/RCTRootViewIntegrationTestApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

'use strict';

require('regenerator-runtime/runtime');

const React = require('react');
const ReactNative = require('react-native');

Expand Down
12 changes: 0 additions & 12 deletions Libraries/Core/InitializeCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,6 @@ ReactNativeVersionCheck.checkVersions();
// ERROR: Event loop not supported.
polyfillGlobal('Promise', () => require('Promise'));

// Set up regenerator.
polyfillGlobal('regeneratorRuntime', () => {
// The require just sets up the global, so make sure when we first
// invoke it the global does not exist
delete global.regeneratorRuntime;
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
* error found when Flow v0.54 was deployed. To see the error delete this
* comment and run Flow. */
require('regenerator-runtime/runtime');
return global.regeneratorRuntime;
});

// Set up timers
const defineLazyTimer = name => {
polyfillGlobal(name, () => require('JSTimers')[name]);
Expand Down
Loading

0 comments on commit b9798d6

Please sign in to comment.