Fix integration snapshots + add emails to test

Reviewed By: davidaurelio

Differential Revision: D5910903

fbshipit-source-id: 2d7d95db99303ce1106203f6146173b0030c4096
This commit is contained in:
Rafael Oleza 2017-09-26 06:50:53 -07:00 committed by Facebook Github Bot
parent 21eef9ebb1
commit 24be572cf5
2 changed files with 13 additions and 2 deletions

View File

@ -80,10 +80,15 @@ function guardedLoadModule(moduleId, module) {
}
}
var ID_MASK_SHIFT = 16;
var LOCAL_ID_MASK = ~0 >>> ID_MASK_SHIFT;
function loadModuleImplementation(moduleId, module) {
var nativeRequire = global.nativeRequire;
if (!module && nativeRequire) {
nativeRequire(moduleId);
var bundleId = moduleId >>> ID_MASK_SHIFT;
var localId = moduleId & LOCAL_ID_MASK;
nativeRequire(localId, bundleId);
module = modules[moduleId];
}
@ -353,10 +358,15 @@ function guardedLoadModule(moduleId, module) {
}
}
var ID_MASK_SHIFT = 16;
var LOCAL_ID_MASK = ~0 >>> ID_MASK_SHIFT;
function loadModuleImplementation(moduleId, module) {
var nativeRequire = global.nativeRequire;
if (!module && nativeRequire) {
nativeRequire(moduleId);
var bundleId = moduleId >>> ID_MASK_SHIFT;
var localId = moduleId & LOCAL_ID_MASK;
nativeRequire(localId, bundleId);
module = modules[moduleId];
}

View File

@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails oncall+javascript_foundation
* @format
*/