You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2013/11/13 06:30:19 UTC
[jira] [Resolved] (SLING-3241) RhinoJavaScriptEngine.eval() does
not unwrap NativeObject returned
[ https://issues.apache.org/jira/browse/SLING-3241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-3241.
--------------------------------------
Resolution: Fixed
Fixed in Rev. 1541393.
Also adapted the ScriptableResourceTest becaused "undefined" is returned as null now. The test evaluates a comparison to the undefined value and verifies the result is true.
> RhinoJavaScriptEngine.eval() does not unwrap NativeObject returned
> ------------------------------------------------------------------
>
> Key: SLING-3241
> URL: https://issues.apache.org/jira/browse/SLING-3241
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting JavaScript 2.0.12
> Environment: All
> Reporter: Sameer Charles
> Assignee: Felix Meschberger
> Fix For: Scripting JavaScript 2.0.14
>
>
> org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngine#eval returns a org.mozilla.javascript.Scriptable object. Ideally resultant object should be unwrapped.
--
This message was sent by Atlassian JIRA
(v6.1#6144)