Your comments

I would like this in the new version pls

Cabricode,


I assume you ar talking about following promises:


Use the technique of Polyfill as Ekaterina proposed. (you kinda upgrade the current JS with new functionality by doing so)

search for "polyfill promise javascript" in google and take it from there....

One of the first hits shows me following:

https://github.com/taylorhakes/promise-polyfill


potentially you can just load the provided JS in your Project and start working with it (maybe ---- LOTS of testing required).


I must say, its one of the more advanced missing in the JS indeed.... (that I have not used yet....).


Potentially the answer lies in a different approach???

hope I'm able to point you on your way....

regards,


Davy

Crabicode,


Without wanting to answer in the name of the Iridium team, yet I can allready think of a few reasons....

biggest being the regression testing involved with switching over to a newer version.... If I was their teams manager, I would rather have them spend time and effort in new functionality, instead of regression testing existing functionality..... Certainly seen that the missing code \ functionality can easely be added by each programmer by the means of the prototype overwrite as Ekaterine sampled above.....


It all boils down to a matter of choice and priorities....


Let me know if you are lacking any functions of higher script language and don't know how to work with the prototype to add it to your script....


cheers,


Davy

Hi Ekaterina,


yes, thanks. Had allready done that after knowing what the correct verion was.


thanks a lot for following up. appreciate it.


PS: general remark:

For indepth overview of support of functions and alternatives to add functionality for lower versions, see:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference


it also gives above codesnips to add missing functions, etc to lower version JS.


cheers,


Davy

Hi Ekaterina,


thanks for pointing the version level out to me.. that helps a lot... stupid of me to have missed this....


As for the indexOf... your example is for a string object.... I was talking about the Array object....


however it does not matter as the spec reference clarifies it,


Array.indexOf only has been adopted as of ECMA edition 5.... not in edition 3... ;-)


thanks for the quick help...


cheers,


Davy