From 1fbb4d22fa168a44a76e31d3fefcf633d5c4c4bf Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Tue, 15 Oct 2019 11:15:36 +0800 Subject: [PATCH] chore: use `const` instead of `let` (#283) --- packages/runtime-core/src/warning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/warning.ts b/packages/runtime-core/src/warning.ts index 09cf34e5..7ea32b7c 100644 --- a/packages/runtime-core/src/warning.ts +++ b/packages/runtime-core/src/warning.ts @@ -7,7 +7,7 @@ type ComponentVNode = VNode & { type: Component } -let stack: VNode[] = [] +const stack: VNode[] = [] type TraceEntry = { vnode: ComponentVNode