As proposed by me in #47, I'm implementing setImmediate/clearImmediate support matching the Node.js semantics.
I'm also fixing a bug in argument propagation to the callbacks of setTimeout and setInterval that had to do with reusing slice references from a different scope (the slice call.Arguments of a goja.FunctionCall apparently should not be referenced after the call is handled).
As proposed by me in #47, I'm implementing
setImmediate
/clearImmediate
support matching the Node.js semantics.I'm also fixing a bug in argument propagation to the callbacks of
setTimeout
andsetInterval
that had to do with reusing slice references from a different scope (the slicecall.Arguments
of agoja.FunctionCall
apparently should not be referenced after the call is handled).I've added/changed tests to validate my changes.