Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update Object.prototype.__proto__ related comments #15394

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

hyp3rflow
Copy link
Contributor

As #14864 (comment) mentioned, Update comments pointing Object.prototype.__proto__ in ECMA262
Related ECMA262 PR: tc39/ecma262#2125

@@ -9,7 +9,7 @@
// instances convert TypeScript to JavaScript.

// Removes the `__proto__` for security reasons. This intentionally makes
// Deno non compliant with ECMA-262 Annex B.2.2.1
// Deno non compliant with ECMA-262 20.1.3.8
Copy link
Member

Choose a reason for hiding this comment

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

How is Deno non-compliant if the __proto__ accessor is normative optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops! How about just removing it? @littledivy

Suggested change
// Deno non compliant with ECMA-262 20.1.3.8

Copy link
Contributor Author

Choose a reason for hiding this comment

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

or just specify like this

Suggested change
// Deno non compliant with ECMA-262 20.1.3.8
// https://tc39.es/ecma262/#sec-get-object.prototype.__proto__

Copy link
Member

Choose a reason for hiding this comment

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

that works!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've fixed this and decided not to change comment in testdata! thanks :) @littledivy

@hyp3rflow hyp3rflow requested a review from littledivy August 4, 2022 01:08
@littledivy littledivy merged commit 2138b68 into denoland:main Aug 4, 2022
@hyp3rflow hyp3rflow deleted the fix/proto-comment branch August 4, 2022 05:59
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.

2 participants