js: reset variable types after compatibility layer call

Fixes https://github.com/TurboWarp/scratch-vm/issues/245
This commit is contained in:
Muffin committed 2025-02-11 00:49:36 -06:00
1 parent af3b7513a4
commit cd63c87f07
4 files changed
+70

No files matched your search

+2
View File
@@ -1342,6 +1342,8 @@ class JSGenerator {
const opcodeFunction = this.evaluateOnce(`runtime.getOpcodeFunction("${sanitize(opcode)}")`);
result += `}, ${opcodeFunction}, ${this.isWarp}, ${setFlags}, "${sanitize(node.id)}", ${frameName})`;
this.yielded();
return result;
}