Skip to content

Commit 38e1b50

Browse files
Conduitrytaylorzane
authored andcommitted
fix bitmask overflow when using slotted components (sveltejs#4077)
1 parent 3fa2e11 commit 38e1b50

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/compiler/compile/render_dom/Renderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ export default class Renderer {
8686
null
8787
);
8888

89-
this.context_overflow = this.context.length > 31;
90-
9189
// TODO messy
9290
this.blocks.forEach(block => {
9391
if (block instanceof Block) {
@@ -99,6 +97,8 @@ export default class Renderer {
9997

10098
this.fragment.render(this.block, null, x`#nodes` as Identifier);
10199

100+
this.context_overflow = this.context.length > 31;
101+
102102
this.context.forEach(member => {
103103
const { variable } = member;
104104
if (variable) {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
error: `A is not defined`,
3+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<script>
2+
let x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31;
3+
</script>
4+
<A>foo</A>

0 commit comments

Comments
 (0)