Merge branch 'loader' of github.com:280north/cappuccino into loader

This commit is contained in:
Ross Boucher committed 2010-02-16 16:37:24 -08:00
commit 32572844fd
1 file changed
+5 -2
+5 -2
View File
@@ -37,11 +37,14 @@ function FileExecutable(/*String*/ aPath)
var fileContents = rootResource.nodeAtSubPath(aPath).contents(),
executable = NULL;
if (!fileContents.match(/^@STATIC;/))
if (fileContents.match(/^@STATIC;/))
executable = decompile(fileContents, aPath);
else if (FILE.extension(aPath) === ".j")
executable = preprocess(fileContents, aPath, OBJJ_PREPROCESSOR_DEBUG_SYMBOLS);
else
executable = decompile(fileContents, aPath);
executable = new Executable(fileContents, [], aPath);
Executable.apply(this, [executable.code(), executable.fileDependencies(), aPath, executable._function]);