From 4eb338a7ff2e57918f92bd7070baeeba53ab0e19 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 4 May 2026 08:08:23 +0800 Subject: [PATCH] .yarn/releases/yarn-1.15.2.js: fix type checking vul in ctorName --- .yarn/releases/yarn-1.15.2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.yarn/releases/yarn-1.15.2.js b/.yarn/releases/yarn-1.15.2.js index 8a6eb5a18..5491be13f 100755 --- a/.yarn/releases/yarn-1.15.2.js +++ b/.yarn/releases/yarn-1.15.2.js @@ -155804,7 +155804,7 @@ empty list will be returned. A validation error will have two properties: } function ctorName(val) { - return val.constructor ? val.constructor.name : null + return val.constructor && typeof val.constructor === 'function' ? val.constructor.name : null } function isArray(val) {