From 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 18:09:58 +0800
Subject: [PATCH] 上报转运调试
---
node_modules/browserslist/index.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/node_modules/browserslist/index.js b/node_modules/browserslist/index.js
index d9ec66e..8b52d93 100644
--- a/node_modules/browserslist/index.js
+++ b/node_modules/browserslist/index.js
@@ -255,10 +255,14 @@
.concat(chromeVersions.slice(iFirstEvergreen))
}
+var DANGEROUS_KEYS = ['__proto__', 'constructor', 'prototype']
+
function copyObject(obj) {
var copy = {}
for (var key in obj) {
- copy[key] = obj[key]
+ if (DANGEROUS_KEYS.indexOf(key) === -1) {
+ copy[key] = obj[key]
+ }
}
return copy
}
--
Gitblit v1.9.3