maptool
maptool copied to clipboard
[Feature]: Implement missing javascript natives
Feature Request
The graalvm javascript implementation is missing some javascript natives.
-
setTimeout
,setInterval
,clearInterval
-- schedule a function to run -
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
I agree, this is a much needed feature.