Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function create_debugging_comment(
} else {
// @ts-ignore
d = node.expression ? node.expression.node.end : c;
while (source[d] !== '}') d += 1;
while (source[d] !== '}' && d <= source.length) d += 1;
while (source[d] === '}') d += 1;
}

Expand Down
3 changes: 3 additions & 0 deletions test/runtime/samples/component-slot-slot/Component.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
<slot name="test" />
</div>
7 changes: 7 additions & 0 deletions test/runtime/samples/component-slot-slot/Forward.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script>
import Component from './Component.svelte';
</script>

<Component>
<slot slot="test" />
</Component>
3 changes: 3 additions & 0 deletions test/runtime/samples/component-slot-slot/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
html: '<div><span>lol</span></div>'
};
9 changes: 9 additions & 0 deletions test/runtime/samples/component-slot-slot/main.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script>
import Forward from './Forward.svelte';
</script>

<Forward>
<span>
lol
</span>
</Forward>