From 9a8f2446e9f2987851eb2bbb10982547132ccfaa Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 3 Mar 2020 21:15:04 +0800 Subject: [PATCH] fix(wxs): const => var --- packages/uni-mp-weixin/dist/wxs.js | 4 ++-- src/core/runtime/mp/wxs.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/uni-mp-weixin/dist/wxs.js b/packages/uni-mp-weixin/dist/wxs.js index 8261c319c..736d17e91 100644 --- a/packages/uni-mp-weixin/dist/wxs.js +++ b/packages/uni-mp-weixin/dist/wxs.js @@ -2,7 +2,7 @@ * wxs getRegExp */ function getRegExp () { - const args = Array.prototype.slice.call(arguments); + var args = Array.prototype.slice.call(arguments); args.unshift(RegExp); return new (Function.prototype.bind.apply(RegExp, args))() } @@ -11,7 +11,7 @@ function getRegExp () { * wxs getDate */ function getDate () { - const args = Array.prototype.slice.call(arguments); + var args = Array.prototype.slice.call(arguments); args.unshift(Date); return new (Function.prototype.bind.apply(Date, args))() } diff --git a/src/core/runtime/mp/wxs.js b/src/core/runtime/mp/wxs.js index be07ff83e..e332d5943 100644 --- a/src/core/runtime/mp/wxs.js +++ b/src/core/runtime/mp/wxs.js @@ -2,7 +2,7 @@ * wxs getRegExp */ export function getRegExp () { - const args = Array.prototype.slice.call(arguments) + var args = Array.prototype.slice.call(arguments) args.unshift(RegExp) return new (Function.prototype.bind.apply(RegExp, args))() } @@ -11,7 +11,7 @@ export function getRegExp () { * wxs getDate */ export function getDate () { - const args = Array.prototype.slice.call(arguments) + var args = Array.prototype.slice.call(arguments) args.unshift(Date) return new (Function.prototype.bind.apply(Date, args))() } -- GitLab