From 8389dfb30a2b6afa63fc418777e5c843bb0aa12b Mon Sep 17 00:00:00 2001 From: Timothy Johnson Date: Tue, 3 Dec 2019 08:16:30 -0800 Subject: [PATCH] Move to internal data --- src/compiler/compile/render_dom/index.ts | 2 +- test/js/samples/debug-empty/expected.js | 2 +- test/js/samples/debug-foo-bar-baz-things/expected.js | 2 +- test/js/samples/debug-foo/expected.js | 2 +- test/js/samples/debug-hoisted/expected.js | 2 +- test/js/samples/dev-warning-missing-data-computed/expected.js | 2 +- test/js/samples/loop-protect/expected.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/compiler/compile/render_dom/index.ts b/src/compiler/compile/render_dom/index.ts index 348949a44b..009e1bd927 100644 --- a/src/compiler/compile/render_dom/index.ts +++ b/src/compiler/compile/render_dom/index.ts @@ -416,7 +416,7 @@ export default function dom( ${uses_props && b`$$props = @exclude_internal_props($$props);`} - ${ctx_names && x`$$self.ctx_names = ${ctx_names};`} + ${ctx_names && x`$$self.$$.ctx_names = ${ctx_names};`} return ${return_value}; } diff --git a/test/js/samples/debug-empty/expected.js b/test/js/samples/debug-empty/expected.js index 537f223324..79332c5069 100644 --- a/test/js/samples/debug-empty/expected.js +++ b/test/js/samples/debug-empty/expected.js @@ -87,7 +87,7 @@ function instance($$self, $$props, $$invalidate) { if ("name" in $$props) $$invalidate(0, name = $$props.name); }; - $$self.ctx_names = ["name"]; + $$self.$$.ctx_names = ["name"]; return [name]; } diff --git a/test/js/samples/debug-foo-bar-baz-things/expected.js b/test/js/samples/debug-foo-bar-baz-things/expected.js index 2d7c0b8be6..84a42c922d 100644 --- a/test/js/samples/debug-foo-bar-baz-things/expected.js +++ b/test/js/samples/debug-foo-bar-baz-things/expected.js @@ -194,7 +194,7 @@ function instance($$self, $$props, $$invalidate) { if ("baz" in $$props) $$invalidate(3, baz = $$props.baz); }; - $$self.ctx_names = ["things", "foo", "bar", "baz"]; + $$self.$$.ctx_names = ["things", "foo", "bar", "baz"]; return [things, foo, bar, baz]; } diff --git a/test/js/samples/debug-foo/expected.js b/test/js/samples/debug-foo/expected.js index d034a2a689..7c22c23f44 100644 --- a/test/js/samples/debug-foo/expected.js +++ b/test/js/samples/debug-foo/expected.js @@ -182,7 +182,7 @@ function instance($$self, $$props, $$invalidate) { if ("foo" in $$props) $$invalidate(1, foo = $$props.foo); }; - $$self.ctx_names = ["things", "foo"]; + $$self.$$.ctx_names = ["things", "foo"]; return [things, foo]; } diff --git a/test/js/samples/debug-hoisted/expected.js b/test/js/samples/debug-hoisted/expected.js index 04ffab368a..93aa066c55 100644 --- a/test/js/samples/debug-hoisted/expected.js +++ b/test/js/samples/debug-hoisted/expected.js @@ -60,7 +60,7 @@ function instance($$self) { if ("kobzol" in $$props) $$invalidate(1, kobzol = $$props.kobzol); }; - $$self.ctx_names = ["obj", "kobzol"]; + $$self.$$.ctx_names = ["obj", "kobzol"]; return [obj, kobzol]; } diff --git a/test/js/samples/dev-warning-missing-data-computed/expected.js b/test/js/samples/dev-warning-missing-data-computed/expected.js index 9f407cdf00..c29d680033 100644 --- a/test/js/samples/dev-warning-missing-data-computed/expected.js +++ b/test/js/samples/dev-warning-missing-data-computed/expected.js @@ -91,7 +91,7 @@ function instance($$self, $$props, $$invalidate) { } }; - $$self.ctx_names = ["foo", "bar"]; + $$self.$$.ctx_names = ["foo", "bar"]; return [foo, bar]; } diff --git a/test/js/samples/loop-protect/expected.js b/test/js/samples/loop-protect/expected.js index 3c97b8aaa9..141a2d4319 100644 --- a/test/js/samples/loop-protect/expected.js +++ b/test/js/samples/loop-protect/expected.js @@ -89,7 +89,7 @@ function instance($$self) { } while (true); } - $$self.ctx_names = []; + $$self.$$.ctx_names = []; return []; }