From 29c565a1110184444e4436a1b5342fffd172834e Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 25 Oct 2019 17:11:53 +0800 Subject: [PATCH] =?UTF-8?q?DEC-10656=20fix:=20=E6=89=93=E4=B8=AApatch?= =?UTF-8?q?=EF=BC=8C=E5=8E=9F=E5=9B=A0=E5=90=8E=E9=9D=A2=E5=9C=A8=E5=88=86?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/polyfill/lodash.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/polyfill/lodash.js b/src/polyfill/lodash.js index 0885770256..4a29d121fb 100644 --- a/src/polyfill/lodash.js +++ b/src/polyfill/lodash.js @@ -38,7 +38,11 @@ if (typeof Object.getPrototypeOf !== "function") { } : function (object) { // May break if the constructor has been tampered with - return object.constructor.prototype; + try { + return object.constructor.prototype; + } catch (e) { + return {}; + } }; }