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

fix isRecursiveCall failing on flyout blocks #227

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

FurryR
Copy link

@FurryR FurryR commented Oct 1, 2024

Resolves

image

When in interpreter mode, clicking "b" in the flyout will cause exceptions:

Uncaught TypeError: Cannot read properties of undefined (reading 'opcode')
    at a.isRecursiveCall (thread.js:455:23)
    at c.stepToProcedure (sequencer.js:321:36)
    at Object.startProcedure (block-utility.js:154:24)
    at Object.call (scratch3_procedures.js:92:14)
    at push.e.exports (execute.js:531:40)
    at c.stepThread (sequencer.js:216:17)
    at c.stepThreads (sequencer.js:129:26)
    at c.stepThreads (module.js:385:32)
    at Y._step (runtime.js:2537:44)
    at Y._step (userscript.js:237:30)

Proposed Changes

Fixed the issue by adding flyoutBlocks as a fallback.

Reason for Changes

I don't know.

Test Coverage

N/A

@GarboMuffin GarboMuffin merged commit fed099c into TurboWarp:develop Oct 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants