#1
|
|||
|
|||
EventScripter - ECMAScript 6 containers
I don't know how doable this is, it could be as easy as upgrading versions or be extremely complex.
Basically I wanted to have access to the javascript containers Set and Map inside an event scripter script. The main issue I am having is that an array is very slow when you are dealing with a lot of links. Since I have kept all my downloads in the download pane starting in 2015, I am dealing with quite a few links (around 75000). I have tried using an external library that implements those types, but the heap always explodes, i am guessing because each call is sandboxed(?). |
#2
|
||||
|
||||
Hmm, works fine for me without any external library.
Code:
var map={}; map.helloworld="Hello World"; map.number=1; alert(map.helloworld); alert(map.number);
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
Same for Set. Set is just a Map with fixed Value that indiciates that the key exists
__________________
JD-Dev & Server-Admin |
#4
|
||||
|
||||
If you need more help, please let us know
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|