You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when large amounts of valid javascript code is inserted, the client does not update the sample rate nor the link to the page (normal behaviour would normally turn the URL to have the code after the hashtag.)
when setting the sample rate, it does not do anything to the audio, when reloading, the sample rate option defaulted back to before i set it.
when inserting large amounts of code, the URL does not update, meaning that when reloading, the code dissapears, and defaults back to before i set the large portion of code.
this is what i can gather from DevTools that is related to this subject:
The text was updated successfully, but these errors were encountered:
most code with any errors don't update the url. your code is almost certainly infinitely recursive, which still means it's broken. firefox seems to just crash the tab when this happens, it doesn't even report an error.
the player might be able to handle the error a bit better, but it can't make the code work and it can't make it work in all browsers. you should probably just fix your bytebeat code for now.
I'm wondering if instead of running String.fromCharCode on the entire thing in a single pass like this, you map each element of the array to a character individually and then join it into a single string:
I can imagine these are slower, but they might fix the issue. iirc firefox does say "Too many parameters passed to String.charcode.apply" or something like that.
the map would be better. firefox limits the amount of function arguments to 50000, which is sufficient for well written code, but function arguments aren't meant to act as arrays. although i think that 50k for a single bytebeat isn't a good way to go about making bytebeats, it's entirely reasonable someone would hit that number with some inefficient auto generation tool or audio samples.
when large amounts of valid javascript code is inserted, the client does not update the sample rate nor the link to the page (normal behaviour would normally turn the URL to have the code after the hashtag.)
when setting the sample rate, it does not do anything to the audio, when reloading, the sample rate option defaulted back to before i set it.
when inserting large amounts of code, the URL does not update, meaning that when reloading, the code dissapears, and defaults back to before i set the large portion of code.
this is what i can gather from DevTools that is related to this subject:
The text was updated successfully, but these errors were encountered: