From fdfb563b9292cd5bc5f47d495aad496d7a3fbc26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E8=B6=8A?= Date: Thu, 27 Feb 2020 22:26:12 +0800 Subject: [PATCH] feat(compiler): Allow BigInt usage in templates (issue #11126) --- src/core/instance/proxy.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core/instance/proxy.js b/src/core/instance/proxy.js index 423d58788d9..fe36baed8ad 100644 --- a/src/core/instance/proxy.js +++ b/src/core/instance/proxy.js @@ -6,16 +6,12 @@ import { warn, makeMap, isNative } from '../util/index' let initProxy if (process.env.NODE_ENV !== 'production') { - const supportBigInt = - (typeof window !== 'undefined' && typeof window.BigInt === 'function') || - (typeof global !== 'undefined' && typeof global.BigInt === 'function') - 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 - (supportBigInt ? 'BigInt' : '') // for BigInt support issue #11126 + 'BigInt' // for BigInt support issue #11126 ) const warnNonPresent = (target, key) => {