Reorganize core JS files

Reviewed By: lexs

Differential Revision: D3987463

fbshipit-source-id: fa8f1d1bea7ed699120b9705ddc1c83767fcf8e4
This commit is contained in:
Pieter De Baets 2016-10-11 10:08:54 -07:00 committed by Facebook Github Bot
parent 89d4f26846
commit 308ab1001e
3 changed files with 10 additions and 10 deletions

View File

@ -212,7 +212,7 @@ describe('Bundle', () => {
}).then(() => {
otherBundle.setMainModuleId('foo');
otherBundle.finalize({
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
runBeforeMainModule: ['InitializeCore'],
runMainModule: true,
});
@ -243,11 +243,11 @@ describe('Bundle', () => {
line: 6
},
map: {
file: 'require-InitializeJavaScriptAppEngine.js',
file: 'require-InitializeCore.js',
mappings: 'AAAA;',
names: [],
sources: [ 'require-InitializeJavaScriptAppEngine.js' ],
sourcesContent: [';require("InitializeJavaScriptAppEngine");'],
sources: [ 'require-InitializeCore.js' ],
sourcesContent: [';require("InitializeCore");'],
version: 3,
}
},

View File

@ -160,7 +160,7 @@ describe('processRequest', () => {
dev: true,
platform: undefined,
onProgress: jasmine.any(Function),
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
runBeforeMainModule: ['InitializeCore'],
unbundle: false,
entryModuleOnly: false,
isolateModuleIDs: false,
@ -185,7 +185,7 @@ describe('processRequest', () => {
dev: true,
platform: 'ios',
onProgress: jasmine.any(Function),
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
runBeforeMainModule: ['InitializeCore'],
unbundle: false,
entryModuleOnly: false,
isolateModuleIDs: false,
@ -210,7 +210,7 @@ describe('processRequest', () => {
dev: true,
platform: undefined,
onProgress: jasmine.any(Function),
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
runBeforeMainModule: ['InitializeCore'],
unbundle: false,
entryModuleOnly: false,
isolateModuleIDs: false,
@ -440,7 +440,7 @@ describe('processRequest', () => {
runModule: true,
dev: true,
platform: undefined,
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
runBeforeMainModule: ['InitializeCore'],
unbundle: false,
entryModuleOnly: false,
isolateModuleIDs: false,
@ -463,7 +463,7 @@ describe('processRequest', () => {
sourceMapUrl: '/path/to/foo.map?dev=false&runModule=false',
dev: false,
platform: undefined,
runBeforeMainModule: ['InitializeJavaScriptAppEngine'],
runBeforeMainModule: ['InitializeCore'],
unbundle: false,
entryModuleOnly: false,
isolateModuleIDs: false,

View File

@ -130,7 +130,7 @@ const bundleOpts = declareOpts({
type: 'array',
default: [
// Ensures essential globals are available and are patched correctly.
'InitializeJavaScriptAppEngine'
'InitializeCore'
],
},
unbundle: {