-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Conversation
cli/tsc/99_main_compiler.js
Outdated
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
// Deno non compliant with ECMA-262 20.1.3.8 |
There was a problem hiding this comment.
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
// Deno non compliant with ECMA-262 20.1.3.8 | |
// https://tc39.es/ecma262/#sec-get-object.prototype.__proto__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that works!
There was a problem hiding this comment.
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
98dd426
to
3f07453
Compare
As #14864 (comment) mentioned, Update comments pointing
Object.prototype.__proto__
in ECMA262Related ECMA262 PR: tc39/ecma262#2125