From 8af35fa0a068ad1fbd62e14ba08da8cb664c6497 Mon Sep 17 00:00:00 2001 From: luckyadam Date: Mon, 5 Nov 2018 16:54:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(async-await):=20=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=94=AF=E4=BB=98=E5=AE=9D=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E8=80=85=E5=B7=A5=E5=85=B7=E4=B8=8D=E6=94=AF=E6=8C=81=E7=A9=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-async-await/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/taro-async-await/index.js b/packages/taro-async-await/index.js index e10a5a050a3f..93489dc016aa 100644 --- a/packages/taro-async-await/index.js +++ b/packages/taro-async-await/index.js @@ -1,3 +1,5 @@ +// support for async functions + if (process.env.TARO_ENV !== 'alipay') { var g = typeof window !== 'undefined' && window.Math === Math ? window : typeof global === 'object' ? global : this