From 003cf39c8f2c1b03b5b18e00d37dfc9d64215c80 Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Mon, 6 May 2019 09:21:02 -0500 Subject: [PATCH] Initialize `get_slot_changes` to null when not needed Fixes #2697 --- src/compile/render-dom/wrappers/Slot.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compile/render-dom/wrappers/Slot.ts b/src/compile/render-dom/wrappers/Slot.ts index ec1b7d4b59..31bb4853b1 100644 --- a/src/compile/render-dom/wrappers/Slot.ts +++ b/src/compile/render-dom/wrappers/Slot.ts @@ -90,6 +90,7 @@ export default class SlotWrapper extends Wrapper { const ${get_slot_context} = (${arg}) => (${stringify_props(context_props)}); `); } else { + get_slot_changes = 'null'; get_slot_context = 'null'; }