Skip to content

docs: improve readability of strict mode property assignment intro#43503

Merged
Josh-Cena merged 2 commits intomdn:mainfrom
Brennvo:patch-1
Mar 23, 2026
Merged

docs: improve readability of strict mode property assignment intro#43503
Josh-Cena merged 2 commits intomdn:mainfrom
Brennvo:patch-1

Conversation

@Brennvo
Copy link
Copy Markdown
Contributor

@Brennvo Brennvo commented Mar 20, 2026

Description

Rephrases the introduction to the "Failing to assign to object properties" section of the "Strict mode" page.

Motivation

The current phrasing is somewhat ambiguous on first glance:

Strict mode makes assignments which would otherwise silently fail to throw an exception.

It can read as if strict mode is actually performing some sort of assignment. This pull request attempts to clarify how strict mode affects how certain assignments behave.

Additional details

N/A

Related issues and pull requests

N/A

@Brennvo Brennvo requested a review from a team as a code owner March 20, 2026 04:04
@Brennvo Brennvo requested review from wbamberg and removed request for a team March 20, 2026 04:04
@github-actions github-actions bot added Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed labels Mar 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 20, 2026

Preview URLs (1 page)

(comment last updated: 2026-03-20 04:19:21)

Copy link
Copy Markdown
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

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

OK, thank you!

@Josh-Cena Josh-Cena merged commit 63fee14 into mdn:main Mar 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants