RangeError: C call stack depth limit
Can you see where it properly needs one? I tried to allow it to use ByteArrays as well (or any object that has a `[]' operator). I may have left in a couple evil engine calls, though, like making surfaces directly out of ArrayBuffers.
Turbo.LoadSystemScheme = function(name){ var scheme_file = new RawFile("#~/formats/"+name); var scheme_buffer = scheme_file.read(scheme_file.size); var scheme_byteview = new Uint8Array(scheme_buffer); var scheme_bytearray = ByteArrayFromTypedArray(scheme_byteview); return JSON.parse(CreateStringFromByteArray(scheme_bytearray));}
Which is the most schizophrenic piece of code I've ever seen. You go from a ByteArray (returned by RawFile:read) to a Uint8Array, back to a ByteArray again, and finally to a string before parsing it as JSON. Were you just stress-testing the ByteArray stuff on purpose or what?
fish: Job 1, "./msphere ~/Dropbox/projects/sphere/boingers2.2/startup/" terminated by signal SIGSEGV (Address boundary error)
Yeah, I noticed it works fine on Wine. Will wait for the next Allegro version then.