From ec5016ad8f48b9a9283e6a215ed95e2c4a51a493 Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Wed, 4 May 2016 05:18:42 -0700 Subject: [PATCH] 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 --- IntegrationTests/RCTRootViewIntegrationTestApp.js | 2 +- .../Initialization/InitializeJavaScriptAppEngine.js | 2 +- jestSupport/env.js | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/IntegrationTests/RCTRootViewIntegrationTestApp.js b/IntegrationTests/RCTRootViewIntegrationTestApp.js index a81317d50..c40121648 100644 --- a/IntegrationTests/RCTRootViewIntegrationTestApp.js +++ b/IntegrationTests/RCTRootViewIntegrationTestApp.js @@ -10,7 +10,7 @@ */ 'use strict'; -require('regenerator/runtime'); +require('regenerator-runtime/runtime'); var React = require('react'); var ReactNative = require('react-native'); diff --git a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js index b12f4f46a..2f48852d1 100644 --- a/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js +++ b/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js @@ -22,7 +22,7 @@ /* eslint strict: 0 */ /* globals GLOBAL: true, window: true */ -require('regenerator/runtime'); +require('regenerator-runtime/runtime'); if (typeof GLOBAL === 'undefined') { global.GLOBAL = global; diff --git a/jestSupport/env.js b/jestSupport/env.js index ea3901bf1..13950bc69 100644 --- a/jestSupport/env.js +++ b/jestSupport/env.js @@ -17,6 +17,6 @@ global.__fbBatchedBridgeConfig = { }; global.Promise = require('promise'); -global.regeneratorRuntime = require.requireActual('regenerator/runtime'); +global.regeneratorRuntime = require.requireActual('regenerator-runtime/runtime'); jest.setMock('ErrorUtils', require('ErrorUtils')); diff --git a/package.json b/package.json index 8e03b08ee..7e111fbf6 100644 --- a/package.json +++ b/package.json @@ -165,7 +165,7 @@ "react-timer-mixin": "^0.13.2", "react-transform-hmr": "^1.0.4", "rebound": "^0.0.13", - "regenerator": "^0.8.36", + "regenerator-runtime": "^0.9.5", "sane": "^1.2.0", "semver": "^5.0.3", "source-map": "^0.4.4",