Files
001code-html--cocos/scratch-vm/test/snapshot/__snapshots__/tw-boolean-arguments-are-not-cast.sb3.tw-snapshot
2026-09-07 09:55:36 +08:00

25 lines
1.1 KiB
Plaintext

// TW Snapshot
// Input SHA-256: 9ecff9e3c4b1dcdf3e23d0e49c0a2da3de446b6d626a2b5ee39d761be20344ca
// Sprite1 script
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
const b0 = runtime.getOpcodeFunction("looks_say");
return function* genXYZ () {
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, "f", null);
yield* thread.procedures["ZBlock A %s"]("Hai!!!");
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, "k", null);
retire(); return;
}; })
// Sprite1 ZBlock A %s
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
const b0 = runtime.getOpcodeFunction("looks_say");
return function* genXYZ_Block_A_ (p0) {
if ((("" + p0).toLowerCase() === "Hai!!!".toLowerCase())) {
yield* executeInCompatibilityLayer({"MESSAGE":"pass did not cast",}, b0, false, false, "m", null);
} else {
yield* executeInCompatibilityLayer({"MESSAGE":"fail was casted",}, b0, false, false, "n", null);
}
return "";
}; })