[ 
https://issues.apache.org/jira/browse/SLING-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870334#comment-13870334
 ] 

Felix Meschberger commented on SLING-3266:
------------------------------------------

This looks like a duplicate of SLING-319.

> RhinoJavaScriptEngine should Implement javax.script.Compilable
> --------------------------------------------------------------
>
>                 Key: SLING-3266
>                 URL: https://issues.apache.org/jira/browse/SLING-3266
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>    Affects Versions: Scripting JavaScript 2.0.12
>            Reporter: Sameer Charles
>            Priority: Minor
>
> AFAIK, Rhino javascript engine bundled with java 5 implement 
> javax.script.Compilable. It would be good if the sling RhinoJavascriptEngine 
> would implement compilable and provide a javax.script.CompiledScript 
> extension.
> Currently if you want to compile JS, you are forced to use Rhino directly.
> In addition, it would also be nice to have a support for any Compilable 
> engine. ie. if the engine implement Compilable, sling should compile and keep 
> the CompiledScript in repository for subsequent evaluation.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to