Skip to content

Commit fdfb563

Browse files
committed
feat(compiler): Allow BigInt usage in templates (issue #11126)
1 parent 7b626a8 commit fdfb563

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: src/core/instance/proxy.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ import { warn, makeMap, isNative } from '../util/index'
66
let initProxy
77

88
if (process.env.NODE_ENV !== 'production') {
9-
const supportBigInt =
10-
(typeof window !== 'undefined' && typeof window.BigInt === 'function') ||
11-
(typeof global !== 'undefined' && typeof global.BigInt === 'function')
12-
139
const allowedGlobals = makeMap(
1410
'Infinity,undefined,NaN,isFinite,isNaN,' +
1511
'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
1612
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
1713
'require,' + // for Webpack/Browserify
18-
(supportBigInt ? 'BigInt' : '') // for BigInt support issue #11126
14+
'BigInt' // for BigInt support issue #11126
1915
)
2016

2117
const warnNonPresent = (target, key) => {

0 commit comments

Comments
 (0)