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:
parent
8b03c1e6cc
commit
2138b68c24
2 changed files with 4 additions and 4 deletions
|
@ -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) => {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue