Skip to content

block-duplicate: use return value of stripIds - #9003

Merged
mxmou merged 1 commit into
ScratchAddons:masterfrom
mxmou:use-stripids-result
Apr 28, 2026
Merged

block-duplicate: use return value of stripIds#9003
mxmou merged 1 commit into
ScratchAddons:masterfrom
mxmou:use-stripids-result

Conversation

@mxmou

@mxmou mxmou commented Apr 25, 2026

Copy link
Copy Markdown
Member

Changes

There's an open PR in scratch-blocks that changes stripIds() to create a new object instead of mutating the argument, which will break the cursed inputs fix introduced in #8997. This PR updates the code that calls stripIds() to use the returned value if there's one.

Tests

Verified that the cursed inputs bug is still fixed on scratch.mit.edu and on the fix/stripIds-mutation branch of scratch-blocks.

@mxmou mxmou self-assigned this Apr 25, 2026
@mxmou mxmou added scope: addon Related to one or multiple addons scope: upstream Related to something we depend on (like Scratch, a library, or the browser) labels Apr 25, 2026
@Joeclinton1

Copy link
Copy Markdown
Member

I saw the stripids thing yesterday and was like huh that sounds relevant. But didn't piece together it would break your fix.

@Joeclinton1

Copy link
Copy Markdown
Member

You can request me to review you know if you want something done faster

@DNin01 DNin01 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untested but looks right

@mxmou
mxmou merged commit 9c5823d into ScratchAddons:master Apr 28, 2026
2 checks passed
@mxmou
mxmou deleted the use-stripids-result branch April 28, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: addon Related to one or multiple addons scope: upstream Related to something we depend on (like Scratch, a library, or the browser)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants