public String compileSource()

in src/main/java/org/apache/sling/scripting/esx/services/impl/ScriptSandboxServiceImpl.java [55:66]


    public String compileSource(String source) throws ScriptException {      
        Invocable inv = (Invocable) scriptEngine;
        JSObject rs;
        try {       
            rs = (JSObject) inv.invokeMethod(babel, "transform", source, babelOptions);
            return rs.getMember("code").toString(); 
        } catch (ScriptException ex) {
            throw new ScriptException(ex);
        } catch (NoSuchMethodException ex) {
            throw new ScriptException(ex);
        }
    }