Skip to content

Commit 5a470cd

Browse files
committed
Don't report a compile exception for a missing function before linking (fixes function_exists() and extension_exists() in many cases)
1 parent 65fa4fe commit 5a470cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/laytonsmith/core/MethodScriptCompiler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,8 +1955,7 @@ private static void optimize(ParseTree tree, Stack<List<Procedure>> procs, Set<C
19551955
try {
19561956
f = (Function) FunctionList.getFunction(t.getData());
19571957
} catch (ConfigCompileException ex) {
1958-
compilerErrors.add(ex);
1959-
return;
1958+
continue;
19601959
}
19611960
Set<OptimizationOption> options = NO_OPTIMIZATIONS;
19621961
if(f instanceof Optimizable) {

0 commit comments

Comments
 (0)