alternative fix for #3508

pull/3811/head
Richard Harris 5 years ago
parent 1c7d61ed05
commit 47a9811c1e

@ -7,7 +7,7 @@ import add_to_set from '../utils/add_to_set';
import { extract_names } from '../utils/scope';
import { invalidate } from '../utils/invalidate';
import Block from './Block';
import { ClassDeclaration, FunctionExpression, Node, Statement } from 'estree';
import { ClassDeclaration, FunctionExpression, Node, Statement, ObjectExpression } from 'estree';
export default function dom(
component: Component,
@ -425,15 +425,15 @@ export default function dom(
`);
}
const prop_names = x`[]`;
const renamed_prop_names = [];
const prop_names = x`{}` as ObjectExpression;
// TODO find a more idiomatic way of doing this
props.forEach(v => {
(prop_names as any).elements.push({ type: 'Literal', value: v.export_name });
if (v.name !== v.export_name) {
renamed_prop_names.push(p`${v.export_name}: "${v.name}"`);
}
prop_names.properties.push(
v.name === v.export_name
? p`${v.name}: 0`
: p`${v.export_name}: "${v.name}"`
);
});
if (options.customElement) {
@ -444,7 +444,7 @@ export default function dom(
${css.code && b`this.shadowRoot.innerHTML = \`<style>${css.code.replace(/\\/g, '\\\\')}${options.dev ? `\n/*# sourceMappingURL=${css.map.toUrl()} */` : ''}</style>\`;`}
@init(this, { target: this.shadowRoot }, ${definition}, create_fragment, ${not_equal}, ${prop_names}, ${renamed_prop_names.length > 0 && x`{ ${renamed_prop_names} }`});
@init(this, { target: this.shadowRoot }, ${definition}, create_fragment, ${not_equal}, ${prop_names});
${dev_props_check}
@ -496,7 +496,7 @@ export default function dom(
constructor(options) {
super(${options.dev && `options`});
${should_add_css && b`if (!@_document.getElementById("${component.stylesheet.id}-style")) ${add_css}();`}
@init(this, options, ${definition}, create_fragment, ${not_equal}, ${prop_names}, ${renamed_prop_names.length > 0 && x`{ ${renamed_prop_names} }`});
@init(this, options, ${definition}, create_fragment, ${not_equal}, ${prop_names});
${options.dev && b`@dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "${name.name}", options, id: create_fragment.name });`}
${dev_props_check}

@ -12,8 +12,7 @@ interface T$$ {
update: () => void;
callbacks: any;
after_update: any[];
props: any;
renamed_props: any;
props: Record<string, 0 | string>;
fragment: null|any;
not_equal: any;
before_update: any[];
@ -23,12 +22,11 @@ interface T$$ {
}
export function bind(component, name, callback) {
if (component.$$.props.indexOf(name) === -1) return;
if (component.$$.renamed_props && name in component.$$.renamed_props) {
name = component.$$.renamed_props[name];
if (name in component.$$.props) {
name = component.$$.props[name] || name;
component.$$.bound[name] = callback;
callback(component.$$.ctx[name]);
}
component.$$.bound[name] = callback;
callback(component.$$.ctx[name]);
}
export function mount_component(component, target, anchor) {
@ -74,19 +72,18 @@ function make_dirty(component, key) {
component.$$.dirty[key] = true;
}
export function init(component, options, instance, create_fragment, not_equal, prop_names, renamed_props) {
export function init(component, options, instance, create_fragment, not_equal, props) {
const parent_component = current_component;
set_current_component(component);
const props = options.props || {};
const prop_values = options.props || {};
const $$: T$$ = component.$$ = {
fragment: null,
ctx: null,
// state
props: prop_names,
renamed_props,
props,
update: noop,
not_equal,
bound: blank_object(),
@ -106,14 +103,14 @@ export function init(component, options, instance, create_fragment, not_equal, p
let ready = false;
$$.ctx = instance
? instance(component, props, (key, ret, value = ret) => {
? instance(component, prop_values, (key, ret, value = ret) => {
if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {
if ($$.bound[key]) $$.bound[key](value);
if (ready) make_dirty(component, key);
}
return ret;
})
: props;
: prop_values;
$$.update();
ready = true;

@ -39,7 +39,7 @@ function handleFoo(bar) {
}
function foo(node, callback) {
}
function instance($$self, $$props, $$invalidate) {
@ -56,7 +56,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["bar"]);
init(this, options, instance, create_fragment, safe_not_equal, { bar: 0 });
}
}

@ -52,7 +52,7 @@ function link(node) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -42,7 +42,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -58,7 +58,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["open"]);
init(this, options, instance, create_fragment, safe_not_equal, { open: 0 });
}
}

@ -56,7 +56,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["w", "h"]);
init(this, options, instance, create_fragment, safe_not_equal, { w: 0, h: 0 });
}
}

@ -68,7 +68,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -58,7 +58,7 @@ class Component extends SvelteComponent {
constructor(options) {
super();
if (!document.getElementById("svelte-1a7i8ec-style")) add_css();
init(this, options, instance, create_fragment, safe_not_equal, ["foo"]);
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
}
}

@ -45,7 +45,7 @@ function instance($$self) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -45,7 +45,7 @@ function instance($$self) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, not_equal, []);
init(this, options, instance, create_fragment, not_equal, {});
}
}

@ -45,7 +45,7 @@ function instance($$self) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, not_equal, []);
init(this, options, instance, create_fragment, not_equal, {});
}
}

@ -91,7 +91,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -45,7 +45,7 @@ function instance($$self) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -48,7 +48,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -34,7 +34,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["increment"]);
init(this, options, instance, create_fragment, safe_not_equal, { increment: 0 });
}
get increment() {

@ -67,7 +67,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -32,7 +32,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["x", "a", "b"]);
init(this, options, instance, create_fragment, safe_not_equal, { x: 0, a: 0, b: 0 });
}
get a() {

@ -41,7 +41,7 @@ class Component extends SvelteComponent {
constructor(options) {
super();
if (!document.getElementById("svelte-1slhpfn-style")) add_css();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -33,7 +33,7 @@ class Component extends SvelteElement {
constructor(options) {
super();
this.shadowRoot.innerHTML = `<style>div{animation:foo 1s}@keyframes foo{0%{opacity:0}100%{opacity:1}}</style>`;
init(this, { target: this.shadowRoot }, null, create_fragment, safe_not_equal, []);
init(this, { target: this.shadowRoot }, null, create_fragment, safe_not_equal, {});
if (options) {
if (options.target) {

@ -56,7 +56,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["bar"]);
init(this, options, instance, create_fragment, safe_not_equal, { bar: 0 });
}
}

@ -92,7 +92,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponentDev {
constructor(options) {
super(options);
init(this, options, instance, create_fragment, safe_not_equal, ["name"]);
init(this, options, instance, create_fragment, safe_not_equal, { name: 0 });
dispatch_dev("SvelteRegisterComponent", {
component: this,

@ -192,7 +192,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponentDev {
constructor(options) {
super(options);
init(this, options, instance, create_fragment, safe_not_equal, ["things", "foo", "bar", "baz"]);
init(this, options, instance, create_fragment, safe_not_equal, { things: 0, foo: 0, bar: 0, baz: 0 });
dispatch_dev("SvelteRegisterComponent", {
component: this,

@ -186,7 +186,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponentDev {
constructor(options) {
super(options);
init(this, options, instance, create_fragment, safe_not_equal, ["things", "foo"]);
init(this, options, instance, create_fragment, safe_not_equal, { things: 0, foo: 0 });
dispatch_dev("SvelteRegisterComponent", {
component: this,

@ -64,7 +64,7 @@ function instance($$self) {
class Component extends SvelteComponentDev {
constructor(options) {
super(options);
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
dispatch_dev("SvelteRegisterComponent", {
component: this,

@ -132,7 +132,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponentDev {
constructor(options) {
super(options);
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
dispatch_dev("SvelteRegisterComponent", {
component: this,

@ -112,7 +112,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["createElement"]);
init(this, options, instance, create_fragment, safe_not_equal, { createElement: 0 });
}
}

@ -29,7 +29,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["foo"]);
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
}
}

@ -96,7 +96,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponentDev {
constructor(options) {
super(options);
init(this, options, instance, create_fragment, safe_not_equal, ["foo"]);
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
dispatch_dev("SvelteRegisterComponent", {
component: this,

@ -38,7 +38,7 @@ function make_uppercase() {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -44,7 +44,7 @@ const func = () => import("./Foo.svelte");
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -118,7 +118,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["a", "b", "c", "d", "e"]);
init(this, options, instance, create_fragment, safe_not_equal, { a: 0, b: 0, c: 0, d: 0, e: 0 });
}
}

@ -163,7 +163,13 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["comments", "elapsed", "time", "foo"]);
init(this, options, instance, create_fragment, safe_not_equal, {
comments: 0,
elapsed: 0,
time: 0,
foo: 0
});
}
}

@ -134,7 +134,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["things"]);
init(this, options, instance, create_fragment, safe_not_equal, { things: 0 });
}
}

@ -103,7 +103,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["things"]);
init(this, options, instance, create_fragment, safe_not_equal, { things: 0 });
}
}

@ -39,7 +39,7 @@ const touchstart_handler = e => e.preventDefault();
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -61,17 +61,17 @@ function create_fragment(ctx) {
}
function handleTouchstart() {
}
function handleClick() {
}
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -39,7 +39,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -37,7 +37,7 @@ function get_answer() {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -37,7 +37,7 @@ function get_answer() {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -59,7 +59,7 @@ function instance($$self) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -96,7 +96,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["foo"]);
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
}
}

@ -46,7 +46,7 @@ function create_fragment(ctx) {
if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor);
} else {
}
} else if (if_block) {
if_block.d(1);
@ -75,7 +75,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["foo"]);
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
}
}

@ -55,7 +55,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["color", "x", "y"]);
init(this, options, instance, create_fragment, safe_not_equal, { color: 0, x: 0, y: 0 });
}
}

@ -46,7 +46,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["data"]);
init(this, options, instance, create_fragment, safe_not_equal, { data: 0 });
}
}

@ -46,7 +46,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["color"]);
init(this, options, instance, create_fragment, safe_not_equal, { color: 0 });
}
}

@ -64,7 +64,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["style", "key", "value"]);
init(this, options, instance, create_fragment, safe_not_equal, { style: 0, key: 0, value: 0 });
}
}

@ -34,7 +34,7 @@ let color = "red";
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -52,7 +52,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["files"]);
init(this, options, instance, create_fragment, safe_not_equal, { files: 0 });
}
}

@ -80,7 +80,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -63,7 +63,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["value"]);
init(this, options, instance, create_fragment, safe_not_equal, { value: 0 });
}
}

@ -56,7 +56,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["foo"]);
init(this, options, instance, create_fragment, safe_not_equal, { foo: 0 });
}
}

@ -65,7 +65,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -67,7 +67,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -65,7 +65,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -67,7 +67,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -32,7 +32,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -166,16 +166,16 @@ class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, [
"buffered",
"seekable",
"played",
"currentTime",
"duration",
"paused",
"volume",
"playbackRate"
]);
init(this, options, instance, create_fragment, safe_not_equal, {
buffered: 0,
seekable: 0,
played: 0,
currentTime: 0,
duration: 0,
paused: 0,
volume: 0,
playbackRate: 0
});
}
}

@ -55,7 +55,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -33,7 +33,7 @@ let name = "world";
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -36,7 +36,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["x"]);
init(this, options, instance, create_fragment, safe_not_equal, { x: 0 });
}
}

@ -32,7 +32,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["a", "b"]);
init(this, options, instance, create_fragment, safe_not_equal, { a: 0, b: 0 });
}
}

@ -75,7 +75,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["current"]);
init(this, options, instance, create_fragment, safe_not_equal, { current: 0 });
}
}

@ -20,7 +20,7 @@ function foo(bar) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, ["foo"]);
init(this, options, null, create_fragment, safe_not_equal, { foo: 0 });
}
get foo() {

@ -10,7 +10,7 @@ function foo() {
}
function swipe(node, callback) {
}
const Component = create_ssr_component(($$result, $$props, $$bindings, $$slots) => {

@ -38,7 +38,7 @@ function create_fragment(ctx) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, null, create_fragment, safe_not_equal, []);
init(this, options, null, create_fragment, safe_not_equal, {});
}
}

@ -31,7 +31,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["custom"]);
init(this, options, instance, create_fragment, safe_not_equal, { custom: 0 });
}
}

@ -113,7 +113,7 @@ function create_fragment(ctx) {
}
function foo() {
}
function instance($$self, $$props, $$invalidate) {
@ -131,7 +131,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["x", "y"]);
init(this, options, instance, create_fragment, safe_not_equal, { x: 0, y: 0 });
}
}

@ -109,7 +109,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["num"]);
init(this, options, instance, create_fragment, safe_not_equal, { num: 0 });
}
}

@ -71,7 +71,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -72,7 +72,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -157,7 +157,7 @@ function create_fragment(ctx) {
if_block0.c();
if_block0.m(div, t0);
} else {
}
} else if (if_block0) {
if_block0.d(1);
@ -170,7 +170,7 @@ function create_fragment(ctx) {
if_block1.c();
if_block1.m(div, t3);
} else {
}
} else if (if_block1) {
if_block1.d(1);
@ -183,7 +183,7 @@ function create_fragment(ctx) {
if_block2.c();
if_block2.m(div, t4);
} else {
}
} else if (if_block2) {
if_block2.d(1);
@ -196,7 +196,7 @@ function create_fragment(ctx) {
if_block3.c();
if_block3.m(div, null);
} else {
}
} else if (if_block3) {
if_block3.d(1);
@ -209,7 +209,7 @@ function create_fragment(ctx) {
if_block4.c();
if_block4.m(if_block4_anchor.parentNode, if_block4_anchor);
} else {
}
} else if (if_block4) {
if_block4.d(1);
@ -252,7 +252,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["a", "b", "c", "d", "e"]);
init(this, options, instance, create_fragment, safe_not_equal, { a: 0, b: 0, c: 0, d: 0, e: 0 });
}
}

@ -42,7 +42,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, []);
init(this, options, instance, create_fragment, safe_not_equal, {});
}
}

@ -81,7 +81,7 @@ function instance($$self, $$props, $$invalidate) {
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, ["y"]);
init(this, options, instance, create_fragment, safe_not_equal, { y: 0 });
}
}

Loading…
Cancel
Save