feat(compiler-core): support BigInt in template (#2900)
This commit is contained in:
@@ -292,4 +292,13 @@ describe('compiler + runtime integration', () => {
|
||||
createApp(App).mount(container)
|
||||
expect(EMPTY_ARR.length).toBe(0)
|
||||
})
|
||||
|
||||
test('BigInt support', () => {
|
||||
const app = createApp({
|
||||
template: `<div>{{ BigInt(BigInt(100000111)) + BigInt(2000000000n) * 30000000n }}</div>`
|
||||
})
|
||||
const root = document.createElement('div')
|
||||
app.mount(root)
|
||||
expect(root.innerHTML).toBe('<div>60000000100000111</div>')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user