From 4241f12055275b6687de417e33b6d44a0999c55c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E8=B6=8A?= Date: Thu, 27 Feb 2020 23:25:20 +0800 Subject: [PATCH] feat(compiler): Allow BigInt usage in templates (issue #11126) --- src/core/instance/proxy.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/instance/proxy.js b/src/core/instance/proxy.js index fe36baed8ad..b1884f7118c 100644 --- a/src/core/instance/proxy.js +++ b/src/core/instance/proxy.js @@ -9,9 +9,8 @@ if (process.env.NODE_ENV !== 'production') { const allowedGlobals = makeMap( 'Infinity,undefined,NaN,isFinite,isNaN,' + 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' + - 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' + - 'require,' + // for Webpack/Browserify - 'BigInt' // for BigInt support issue #11126 + 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,' + + 'require' // for Webpack/Browserify ) const warnNonPresent = (target, key) => {