JavaScript Callout Policy

kalyaninturi
Participant II

I implemented a functional requirement using java-call-out policy which is working fine. Now I am

asked to move it to JavaScript. But APIGEE javascript is not supporting data structures like Map.

Apigee is complaining Map as undefined.

Does APIGEE supports all data structures of JavaScript or am I something missing here??

0 2 343
2 REPLIES 2

Hi @kalyan inturi

The JavaScript policy uses Rhino, which is JavaScript running in the Java JVM. I believe the JavaScript version being run is pretty old -- 1.6.

I'd check this community post for more information: https://community.apigee.com/questions/32525/what-version-of-javascript-is-available-to-javascr.html

No,

You cannot used typedarrays, Map, and other objects.

However, every object in JS is effectively a map.

So the lack of Map shouldn't limit you functionally.