Don't Objective-J preprocess non-.j files.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2010-02-16 16:23:03 -08:00
1 parent 93722f6a7d
commit fb9cd1ef93
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]);