Fixed path to regenerator-runtime

Summary:
Since 0.8.43 regenerator has regenerator-runtime dependency.
Fixes one js test in trunk
Closes https://github.com/facebook/react-native/pull/7351

Reviewed By: davidaurelio

Differential Revision: D3252699

Pulled By: bestander

fb-gh-sync-id: cedb122eb8e9f3a5e40a5313482bc2282511c71e
fbshipit-source-id: cedb122eb8e9f3a5e40a5313482bc2282511c71e
This commit is contained in:
Konstantin Raev 2016-05-04 05:18:42 -07:00 committed by Facebook Github Bot 7
parent 46d98e1d68
commit ec5016ad8f
4 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@
*/ */
'use strict'; 'use strict';
require('regenerator/runtime'); require('regenerator-runtime/runtime');
var React = require('react'); var React = require('react');
var ReactNative = require('react-native'); var ReactNative = require('react-native');

View File

@ -22,7 +22,7 @@
/* eslint strict: 0 */ /* eslint strict: 0 */
/* globals GLOBAL: true, window: true */ /* globals GLOBAL: true, window: true */
require('regenerator/runtime'); require('regenerator-runtime/runtime');
if (typeof GLOBAL === 'undefined') { if (typeof GLOBAL === 'undefined') {
global.GLOBAL = global; global.GLOBAL = global;

View File

@ -17,6 +17,6 @@ global.__fbBatchedBridgeConfig = {
}; };
global.Promise = require('promise'); global.Promise = require('promise');
global.regeneratorRuntime = require.requireActual('regenerator/runtime'); global.regeneratorRuntime = require.requireActual('regenerator-runtime/runtime');
jest.setMock('ErrorUtils', require('ErrorUtils')); jest.setMock('ErrorUtils', require('ErrorUtils'));

View File

@ -165,7 +165,7 @@
"react-timer-mixin": "^0.13.2", "react-timer-mixin": "^0.13.2",
"react-transform-hmr": "^1.0.4", "react-transform-hmr": "^1.0.4",
"rebound": "^0.0.13", "rebound": "^0.0.13",
"regenerator": "^0.8.36", "regenerator-runtime": "^0.9.5",
"sane": "^1.2.0", "sane": "^1.2.0",
"semver": "^5.0.3", "semver": "^5.0.3",
"source-map": "^0.4.4", "source-map": "^0.4.4",