Skip to content

fix: correct operator precedence in stepRunnerType resolution#551

Open
MatrixNeoKozak wants to merge 1 commit into
WebKit:mainfrom
MatrixNeoKozak:fix/improvement-1781779187489
Open

fix: correct operator precedence in stepRunnerType resolution#551
MatrixNeoKozak wants to merge 1 commit into
WebKit:mainfrom
MatrixNeoKozak:fix/improvement-1781779187489

Conversation

@MatrixNeoKozak

Copy link
Copy Markdown

The stepRunnerType resolution in SuiteRunner._runSuite incorrectly evaluated this.#suite.type due to operator precedence when this.#suite.type was truthy (e.g., "remote"). Specifically, the ternary operator ? : was incorrectly associated with the ?? operator, leading to scenarios where a specific suite type was overridden by the async/default logic. The expression was refactored to explicitly parenthesize the default logic, ensuring this.#suite.type is correctly prioritized.

@netlify

netlify Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploy Preview for webkit-speedometer-preview ready!

Name Link
🔨 Latest commit a3fbe57
🔍 Latest deploy log https://app.netlify.com/projects/webkit-speedometer-preview/deploys/6a33cafa9ade860008a9f6d5
😎 Deploy Preview https://deploy-preview-551--webkit-speedometer-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant