[ 
https://issues.apache.org/jira/browse/SLING-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Radu Cotescu resolved SLING-4179.
---------------------------------
    Resolution: Won't Fix

> Inconsistent primitive JavaScript types wrapping
> ------------------------------------------------
>
>                 Key: SLING-4179
>                 URL: https://issues.apache.org/jira/browse/SLING-4179
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Scripting JavaScript 2.0.14
>            Reporter: Radu Cotescu
>
> Due to how Java objects are wrapped into JavaScript objects some JavaScript 
> evaluations fail.
> For a GET request: {{request.getMethod() === 'GET'}} returns {{false}}, 
> however {{request.getMethod() == 'GET'}} returns {{true}}.
> For a request having selectors 'a.b', 
> {{request.getRequestPathInfo().getSelectors().indexOf('b')}} returns -1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to