summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongwook Choi <flow@hrmm.xyz>2022-08-04 12:09:16 +0900
committerGitHub <noreply@github.com>2022-08-04 08:39:16 +0530
commit2138b68c248b5d5bd05fb991d3e330a4832601e3 (patch)
treee72698deb138dc4c5c82dd03c81542a8d14a17d0
parent8b03c1e6cce4ecbd52ff389a2f092cfad138879d (diff)
fix: Update `Object.prototype.__proto__` related comments (#15394)
-rw-r--r--cli/tsc/99_main_compiler.js4
-rw-r--r--runtime/js/99_main.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index 1c6679e84..b1d62348b 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -8,8 +8,8 @@
// that is created when Deno needs to type check TypeScript, and in some
// 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
+// Removes the `__proto__` for security reasons.
+// https://tc39.es/ecma262/#sec-get-object.prototype.__proto__
delete Object.prototype.__proto__;
((window) => {
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 115de4d4d..167862a9e 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -1,8 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
"use strict";
-// Removes the `__proto__` for security reasons. This intentionally makes
-// Deno non compliant with ECMA-262 Annex B.2.2.1
+// Removes the `__proto__` for security reasons.
+// https://tc39.es/ecma262/#sec-get-object.prototype.__proto__
delete Object.prototype.__proto__;
// Remove Intl.v8BreakIterator because it is a non-standard API.