maptool icon indicating copy to clipboard operation
maptool copied to clipboard

[Feature]: Implement missing javascript natives

Open perkinslr opened this issue 2 years ago • 1 comments

Feature Request

The graalvm javascript implementation is missing some javascript natives.

  1. setTimeout, setInterval, clearInterval -- schedule a function to run
  2. load/require -- load a resource from a URI and execute it, returning the top level object in tail position.

The Solution you'd like

Where possible and useful, they should be implemented, either in javascript automatically included in each namespace, or as wrappers around Java primitives.

Alternatives that you've considered.

Implement the core bits using MTScript macros and js.UDFs, or via a magic invisible Overlay5. These are likely to be fragile, slow, and lead to duplication of effort if they don't ship with MT.

Additional Context

No response

perkinslr avatar Jan 14 '22 19:01 perkinslr

I agree, this is a much needed feature.

JoeRLDuncan avatar Jan 27 '22 15:01 JoeRLDuncan