I feel like this is a very stupid question but I searched and I searched and I do not find a correct answer.
I write scripts in JavaScript but I do not know which dialect Sparx i(v14) is using in the documentation it refers to Mozilla Spidermonkey however if I use objects described in the reference guide of Spidermonkey I get only errors.
Very concretely I wanted to create a Map to store diagram objects with a key to be able to process them correctly but although
var myArray = new Array();
works fine creating a map with
var myMap = new Map();
throws an exception.
I am trying to guess the syntax that I can use but I would very much be helped if I know which dialect I should use and have a reference for that.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/ReferenceDoes contain all kinds of constructs that will not interpret at all.