Skip to content

Commit c3b7206

Browse files
committedOct 2, 2020
2 parents 0664cb0 + 4241f12 commit c3b7206

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (process.env.NODE_ENV !== 'production') {
99
const allowedGlobals = makeMap(
1010
'Infinity,undefined,NaN,isFinite,isNaN,' +
1111
'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
12-
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
12+
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,' +
1313
'require' // for Webpack/Browserify
1414
)
1515

Diff for: ‎test/unit/features/filter/filter.spec.js

+7
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,11 @@ describe('Filters', () => {
194194
it('support template string', () => {
195195
expect(parseFilters('`a | ${b}c` | d')).toBe('_f("d")(`a | ${b}c`)')
196196
})
197+
198+
it('bigint support', () => {
199+
const vm = new Vue({
200+
template: `<div>{{ BigInt(BigInt(10000000)) + BigInt(2000000000n) * 3000000n }}</div>`
201+
}).$mount()
202+
expect(vm.$el.textContent).toBe('6000000010000000')
203+
})
197204
})

0 commit comments

Comments
 (0)