Radu Cotescu created SLING-4179:
-----------------------------------
Summary: 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)