From e82bc69cbeddaa8599016d5385410cb10525652b Mon Sep 17 00:00:00 2001 From: Yongeya <2087870233@qq.com> Date: Wed, 18 Dec 2024 20:38:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8Dfor=20in=E5=BE=AA?= =?UTF-8?q?=E7=8E=AF=E8=83=BD=E9=81=8D=E5=8E=86=E5=88=B0pipeline=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/ofd/pipeline.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/ofd/pipeline.js b/src/utils/ofd/pipeline.js index ac7bff6..6f94d18 100644 --- a/src/utils/ofd/pipeline.js +++ b/src/utils/ofd/pipeline.js @@ -18,7 +18,9 @@ Array.prototype.pipeline = async function(callback){ } return value; }; - +Object.defineProperty(Array.prototype, 'pipeline', { + enumerable: false +}); let _pipeline = function(...funcs){ return funcs.pipeline((a, b) => b.call(this, a)); }