Looking for confirmation of support or not for javascript optional
function params.   This currently fails for us and I have been unable to
find information on weather this feature is supported or not.

 

Js example snipit.

 

function test(a = 0) {

  var b = a;

}

test();

 

if we take something similar to that and try to validate it using

 

compileReader of the Context object it fails.

 

Context jsContext 

 

jsContext.compileReader(new StringReader(markup), "", 1, null);

 

where jsContext was created as a Rhino Context object and markup is some
javascript that has a function with default values for some of the
params as shown in the above example javascript. 

 

Thanks for the help

 

Andy j.

 

 

 

_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to