mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-11 19:01:43 +08:00
fbsource
Reviewed By: samwgoldman Differential Revision: D4314897 fbshipit-source-id: fbe11da4c63bf34d010220d74177cb3ca4cbee6d
This commit is contained in:
committed by
Facebook Github Bot
parent
affd5ac681
commit
d926aecd77
@@ -71,7 +71,6 @@ function saveAsIndexedFile(
|
||||
|
||||
const fileHeader = new Buffer(4);
|
||||
fileHeader.writeUInt32LE(MAGIC_UNBUNDLE_FILE_HEADER, 0);
|
||||
//$FlowIssue #14640206
|
||||
const nullByteBuffer: Buffer = new Buffer(1).fill(0);
|
||||
|
||||
function writeBuffers(stream, buffers: Array<Buffer>) {
|
||||
@@ -113,7 +112,6 @@ function buildModuleTable(startupCode, buffers, moduleGroups) {
|
||||
const moduleIds = Array.from(moduleGroups.modulesById.keys());
|
||||
const maxId = moduleIds.reduce((max, id) => Math.max(max, id));
|
||||
const numEntries = maxId + 1;
|
||||
//$FlowIssue #14640206
|
||||
const table: Buffer = new Buffer(entryOffset(numEntries)).fill(0);
|
||||
|
||||
// num_entries
|
||||
|
||||
Reference in New Issue
Block a user