mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 10:07:54 -05:00
fix: Update Object.prototype.__proto__
related comments (#15394)
This commit is contained in:
parent
fc04f8a03d
commit
2205d9345e
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
|
||||
// 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) => {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue