Better support for exotic main file locations.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2010-03-05 21:54:22 -08:00
1 parent 9441739839
commit 5afe6fea3c
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ function resolveMainBundleURL()
for (; index < count; ++index)
aResource.resourceAtURL(includeURLs[index], YES);
Executable.fileImporterForURL(mainBundleURL)(mainFileURL, YES, function()
Executable.fileImporterForURL(mainBundleURL)(mainFileURL.lastPathComponent(), YES, function()
{
afterDocumentLoad(main);
});
+1 -1
View File
@@ -53,7 +53,7 @@ GLOBAL(CFBundle) = function(/*CFURL|String*/ aURL)
this._loadStatus = CFBundleUnloaded;
this._loadRequests = [];
this._infoDictionary = NULL;
this._infoDictionary = new CFDictionary();
this._eventDispatcher = new EventDispatcher(this);
}
+1 -1
View File
@@ -33,7 +33,7 @@ function Executable(/*String*/ aCode, /*Array*/ fileDependencies, /*CFURL|String
this._code = aCode;
this._function = aFunction || NULL;
this._URL = makeAbsoluteURL(aURL || new CFURL("(Anonymous" + (AnonymousExecutableCount++) + ")", mainBundleURL));
this._URL = makeAbsoluteURL(aURL || new CFURL("(Anonymous" + (AnonymousExecutableCount++) + ")"));
this._fileDependencies = fileDependencies;
this._fileDependencyLoadStatus = ExecutableUnloadedFileDependencies;