1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 00:29:09 -05:00

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

This commit is contained in:
Yongwook Choi 2022-08-04 12:09:16 +09:00 committed by GitHub
parent 8b03c1e6cc
commit 2138b68c24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -8,8 +8,8 @@
// that is created when Deno needs to type check TypeScript, and in some // that is created when Deno needs to type check TypeScript, and in some
// instances convert TypeScript to JavaScript. // instances convert TypeScript to JavaScript.
// Removes the `__proto__` for security reasons. This intentionally makes // Removes the `__proto__` for security reasons.
// Deno non compliant with ECMA-262 Annex B.2.2.1 // https://tc39.es/ecma262/#sec-get-object.prototype.__proto__
delete Object.prototype.__proto__; delete Object.prototype.__proto__;
((window) => { ((window) => {

View file

@ -1,8 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
"use strict"; "use strict";
// Removes the `__proto__` for security reasons. This intentionally makes // Removes the `__proto__` for security reasons.
// Deno non compliant with ECMA-262 Annex B.2.2.1 // https://tc39.es/ecma262/#sec-get-object.prototype.__proto__
delete Object.prototype.__proto__; delete Object.prototype.__proto__;
// Remove Intl.v8BreakIterator because it is a non-standard API. // Remove Intl.v8BreakIterator because it is a non-standard API.