Treat extensionless files as Objective-J.

Reviewed by ross.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2010-02-16 19:31:31 -08:00
1 parent f9e9e51352
commit df895b9529
1 file changed
+3 -2
+3 -2
View File
@@ -35,12 +35,13 @@ function FileExecutable(/*String*/ aPath)
FileExecutablesForPaths[aPath] = this;
var fileContents = rootResource.nodeAtSubPath(aPath).contents(),
executable = NULL;
executable = NULL,
extension = FILE.extension(aPath);
if (fileContents.match(/^@STATIC;/))
executable = decompile(fileContents, aPath);
else if (FILE.extension(aPath) === ".j")
else if (extension === ".j" || extension === "")
executable = preprocess(fileContents, aPath, OBJJ_PREPROCESSOR_DEBUG_SYMBOLS);
else