Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/dcloudio/uni-app into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Oct 21, 2019
2 parents ebaa120 + 4732894 commit 293432e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-uni-mp-loader/lib/plugin/generate-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = function generateApp (compilation) {
) {
const source =
`
!function(){try{var r=Function("return this")();r&&!r.Math&&Object.assign(r,{Array:Array,Date:Date,Error:Error,Function:Function,Math:Math,Object:Object,RegExp:RegExp,String:String,TypeError:TypeError,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval})}catch(r){}}();
!function(){try{var a=Function("return this")();a&&!a.Math&&(Object.assign(a,{Array:Array,Date:Date,Error:Error,Function:Function,Math:Math,Object:Object,RegExp:RegExp,String:String,TypeError:TypeError,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval}),"undefined"!=typeof Reflect&&(a.Reflect=Reflect))}catch(a){}}();
${compilation.assets[runtimeJsPath].source()}
`
compilation.assets[runtimeJsPath] = {
Expand Down

0 comments on commit 293432e

Please sign in to comment.