Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toLeopard: Handle procedure_calls to missing proc codes #111

Open
towerofnix opened this issue Mar 10, 2023 · 0 comments
Open

toLeopard: Handle procedure_calls to missing proc codes #111

towerofnix opened this issue Mar 10, 2023 · 0 comments
Assignees
Labels
bug Something isn't working compatibility Mismatch or currently unsupported language behavior fmt: Leopard Pertains to Leopard format (JavaScript)

Comments

@towerofnix
Copy link
Member

Scratch just skips interpreting these blocks - in toLeopard.ts it's currently an error. We should probably report the error in generated code, something like:

if (!procedureDefinition) {
  blockSource = `void undefined; /* ${sprite.name} doesn't have a custom block ${block.inputs.PROCCODE.value} */`;
  break;
}
@towerofnix towerofnix changed the title Handle procedure_calls to missing proc codes toLeopard: Handle procedure_calls to missing proc codes Mar 10, 2023
@towerofnix towerofnix added bug Something isn't working compatibility Mismatch or currently unsupported language behavior fmt: Leopard Pertains to Leopard format (JavaScript) labels Mar 10, 2023
@towerofnix towerofnix self-assigned this Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compatibility Mismatch or currently unsupported language behavior fmt: Leopard Pertains to Leopard format (JavaScript)
Projects
None yet
Development

No branches or pull requests

1 participant