diff --git a/packages/uni-mp-weixin/dist/wxs.js b/packages/uni-mp-weixin/dist/wxs.js index 8261c319c23d17d67cdb1047a7a0bd586b90c62d..736d17e912428f046fa007b38c92e98eb2abfb7c 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 be07ff83e335c62a3c1ddb57cff1890329b1daee..e332d5943124c335a757caf53e201fa3500924d0 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))() }