mirror of https://github.com/sveltejs/svelte
fix: prevent invalid BigInt calls from blowing up at compile time (#15900)
parent
df03af2e9d
commit
eebb940b31
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: prevent invalid BigInt calls from blowing up at compile time
|
@ -0,0 +1,7 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
// check that this is a runtime error, not a compile time error
|
||||
// caused by over-eager partial-evaluation
|
||||
error: 'Cannot convert invalid to a BigInt'
|
||||
});
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
var invalid = BigInt('invalid');
|
||||
</script>
|
||||
|
||||
<h1>{invalid}</h1>
|
Loading…
Reference in new issue