commit
This commit is contained in:
@@ -95,7 +95,7 @@ l
|
||||
<script>
|
||||
// 安全地冻结 Object.prototype(跳过不可配置属性)
|
||||
(function () {
|
||||
const badKeys = ['__proto__', 'constructor', 'prototype'];
|
||||
const badKeys = ['constructor', 'prototype'];
|
||||
for (const key of badKeys) {
|
||||
if (key in Object.prototype) {
|
||||
try {
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
<script>
|
||||
// 安全地冻结 Object.prototype(跳过不可配置属性)
|
||||
(function () {
|
||||
const badKeys = ['__proto__', 'constructor', 'prototype'];
|
||||
const badKeys = ['constructor', 'prototype'];
|
||||
for (const key of badKeys) {
|
||||
if (key in Object.prototype) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user