gwtOnLoad.setArtificiallyRescued(true);
JsBlock gwtOnLoadFunctionBody = new JsBlock(sourceInfo);
gwtOnLoad.setBody(gwtOnLoadFunctionBody);
JsExpression gwtOnLoadAssignment =
createAssignment(gwtOnLoadName.makeRef(sourceInfo), gwtOnLoad);
createGwtOnLoadBody.getStatements().add(gwtOnLoadAssignment.makeStmt());
JsScope fnScope = gwtOnLoad.getScope();
List<JsParameter> gwtOnLoadParams = gwtOnLoad.getParameters();
JsName errFn = fnScope.declareName("errFn");
JsName modName = fnScope.declareName("modName");
JsName modBase = fnScope.declareName("modBase");