mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 18:53:50 +00:00
Merge branch 'loader' of github.com:280north/cappuccino into loader
This commit is contained in:
commit
32572844fd
1 file changed
+5
-2
@@ -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]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user