mirror of https://github.com/status-im/metro.git
Fix integration snapshots + add emails to test
Reviewed By: davidaurelio Differential Revision: D5910903 fbshipit-source-id: 2d7d95db99303ce1106203f6146173b0030c4096
This commit is contained in:
parent
21eef9ebb1
commit
24be572cf5
|
@ -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) {
|
function loadModuleImplementation(moduleId, module) {
|
||||||
var nativeRequire = global.nativeRequire;
|
var nativeRequire = global.nativeRequire;
|
||||||
if (!module && nativeRequire) {
|
if (!module && nativeRequire) {
|
||||||
nativeRequire(moduleId);
|
var bundleId = moduleId >>> ID_MASK_SHIFT;
|
||||||
|
var localId = moduleId & LOCAL_ID_MASK;
|
||||||
|
nativeRequire(localId, bundleId);
|
||||||
module = modules[moduleId];
|
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) {
|
function loadModuleImplementation(moduleId, module) {
|
||||||
var nativeRequire = global.nativeRequire;
|
var nativeRequire = global.nativeRequire;
|
||||||
if (!module && nativeRequire) {
|
if (!module && nativeRequire) {
|
||||||
nativeRequire(moduleId);
|
var bundleId = moduleId >>> ID_MASK_SHIFT;
|
||||||
|
var localId = moduleId & LOCAL_ID_MASK;
|
||||||
|
nativeRequire(localId, bundleId);
|
||||||
module = modules[moduleId];
|
module = modules[moduleId];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
* 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.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*
|
*
|
||||||
|
* @emails oncall+javascript_foundation
|
||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue