Skip to content

Add several discouraged JavaScript features#2670

Merged
captainbrosset merged 13 commits into
web-platform-dx:mainfrom
ddbeck:discouraged-javascript
Mar 1, 2025
Merged

Add several discouraged JavaScript features#2670
captainbrosset merged 13 commits into
web-platform-dx:mainfrom
ddbeck:discouraged-javascript

Conversation

@ddbeck

@ddbeck ddbeck commented Feb 18, 2025

Copy link
Copy Markdown
Collaborator

This PR adds several discouraged JavaScript features, building on @captainbrosset's work in #2564. The features are:

  • Accessor methods (__defineGetter__() and __defineSetter__())
  • Date.prototype.{get,set}Year()
  • Date.prototype.toGMTString()
  • escape() and unescape() global methods
  • HTML wrapper methods (e.g., String.prototype.blink())
  • Object.prototype.__proto__
  • RegExp.prototype.compile()

Supersedes and closes #2564.

@github-actions github-actions Bot added the feature definition Creating or defining new features or groups of features. label Feb 18, 2025

@captainbrosset captainbrosset 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.

Just a few comments.

Comment thread features/accessor-methods.yml Outdated
Comment thread features/accessor-methods.yml
Comment thread features/date-get-year-set-year.yml Outdated
@captainbrosset captainbrosset merged commit 90f3498 into web-platform-dx:main Mar 1, 2025
@ddbeck ddbeck deleted the discouraged-javascript branch March 2, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants