Skip to content

change var to let - #10734

Open
u07447201-cloud wants to merge 11 commits into
RaspberryPiFoundation:mainfrom
u07447201-cloud:patch-1
Open

u07447201-cloud wants to merge 11 commits into
RaspberryPiFoundation:mainfrom
u07447201-cloud:patch-1

Conversation

@u07447201-cloud

@u07447201-cloud u07447201-cloud commented Nov 29, 2026 •

Copy link
Copy Markdown

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

N/A (or link the relevant issue number here, e.g., Fixes #1234)

Proposed Changes

Replaces legacy var variable declarations with block-scoped let declarations in packages/blockly/tests/generators/unittest_dart.js to modernize the test suite code and align with current JavaScript style guidelines.

Reason for Changes

let provides block-level scoping, reducing the risk of accidental variable hoisting or unintended reassignments.

Test Coverage

  • Existing Dart generator unit tests pass (npm test)

Additional Information

N/A

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Welcome! It looks like this is your first pull request in Blockly, so here are a couple of tips:

  • You can find tips about contributing to Blockly and how to validate your changes on our developer site.
  • We use conventional commits to make versioning the package easier. Make sure your commit message is in the proper format or learn how to fix it.
  • If any of the other checks on this PR fail, you can click on them to learn why. It might be that your change caused a test failure, or that you need to double-check the style guide.
    Thank you for opening this PR! A member of the Blockly team will review it soon.

This branch has not been deployed

No deployments
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.

React.js + node-blockly 'Uncaught Error: container is not in current document.'

2 participants