fromSb3: Peculiarities in blockWithNext #143
Labels
bug
Something isn't working
compatibility
Mismatch or currently unsupported language behavior
fmt: SB3
Pertains to SB3 format (Scratch 3.0)
Investigating #141.
A simple change in
blockWithNext
to help debug it:if (sb3Block.next !== null) { + console.log(block.opcode, '->', sb3Block.next); next = blockWithNext(sb3Block.next, blockId); }
Last few messages leading up to error are:
This project doesn't appear to be generated from a normal Scratch editor, i.e. those are extremely short IDs compared to a normal project:
So it's quite possible that the
sb3Block.next === undefined
instead ofnull
like we're checking for is an exemption the minifier or project saver this project was made with took. (Unmodified scratch-vm has no problem loading this.)Still, it seems like this is something we are more or less trying to detect but... not treating appropriately...? Check out a little bit earlier in
blockWithNext
:What's with that
?? undefined
, if we're going to be comparing it againstnull
immediately thereafter? Shouldn't it be?? null
?The text was updated successfully, but these errors were encountered: