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
/** * Export project or sprite as a Scratch 3.0 JSON representation. * @param {*} optSerializationOptions Optional id of a sprite to serialize, or the serialization option * @param {*} optCompatibleOptions Compatible serialization option * @return {string} Serialized state of the runtime. */toJSON(optSerializationOptions,optCompatibleOptions){constsb3=require('./serialization/sb3');letserializationOptions=optSerializationOptions;lettargetId;if(typeofoptSerializationOptions==='string'){serializationOptions=optCompatibleOptions;targetId=optSerializationOptions;}else{serializationOptions=optSerializationOptions;if(typeofserializationOptions==='object'&&serializationOptions)targetId=serializationOptions.targetId;}returnStringUtil.stringify(sb3.serialize(this.runtime,targetId,serializationOptions);}
The text was updated successfully, but these errors were encountered:
FurryR
changed the title
[low severity] serializationOptions should be optional (optSerializationOptions)
[low severity] toJSON API incompatible warning
Sep 23, 2024
do you have any examples of code that is actually broken right now that should work
The issue mirrors from Gandi IDE's collaboration system (didn't confirm anything else broken). As it's marked as low severity, you could close this issue safely if you want.
scratch-vm/src/virtual-machine.js
Line 663 in 179030a
Conflicts with:
92c53a5
Which may cause some programs break.
Possible solution:
The text was updated successfully, but these errors were encountered: