I get a weird error message that reads as follows:
error: js: no function slice
What’s weird is that this comes after I have called on the function many many times. It is definitely in my js file. So the patch runs fine for a while and then all the sudden it this function can’t be found anymore. If I recompile the .js file, everything proceeds to work fine again.
the message doesn’t mean that the function has disappeared. It means
that there’s an error in it and therefore there’s not a valid
function with this name. Usually the actual error is also reported
when the problem occurs the first time. Try to reload the patch to
get the complete error message.
Its also possible that some variables have lost their content, when
you were changing your js with the patch open.