no longer add prologue files implicitly, since this code cannot always
find them now that we allow all kinds of prologues to be used
This commit is contained in:
parent
e89d0acf16
commit
1dd180cf93
|
@ -1012,29 +1012,6 @@ public class JavaScriptLoader extends CAstAbstractModuleLoader {
|
|||
bootstrapFileNames.add(prologueFileName);
|
||||
}
|
||||
|
||||
/**
|
||||
* adds the {@link #bootstrapFileNames bootstrap files} to the list of modules
|
||||
* and then invokes the superclass method
|
||||
*/
|
||||
@Override
|
||||
public void init(List<Module> modules) {
|
||||
|
||||
List<Module> all = new LinkedList<Module>();
|
||||
|
||||
for (final String fn : bootstrapFileNames) {
|
||||
all.add(new SourceURLModule(getClass().getClassLoader().getResource(fn)) {
|
||||
@Override
|
||||
public String getName() {
|
||||
return fn;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
all.addAll(modules);
|
||||
|
||||
super.init(all);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
protected TranslatorToCAst getTranslatorToCAst(final CAst ast, SourceModule module) {
|
||||
|
|
Loading…
Reference in New Issue