On a browser, setInterval will return an integer which can be made immutable. On Node, setInterval returns an object. When we attempt to make this object immutable using seamless-immutable a 'Function.prototype.toString is not generic' exception is thrown. We can replicate the error with the following code snippet on Node:
const id = setInterval(()=>{console.log('Hello World')}, 100);
const immutableObject = Immutable(id);
Has anyone else experienced this issue or know of a work-around?
On a browser, setInterval will return an integer which can be made immutable. On Node, setInterval returns an object. When we attempt to make this object immutable using seamless-immutable a 'Function.prototype.toString is not generic' exception is thrown. We can replicate the error with the following code snippet on Node:
Has anyone else experienced this issue or know of a work-around?