Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
c: function create() {
{
const index = ctx[2];
console.log({ index });
debugger;
}
t0 = space();
t1 = text(t1_value);
},
m: function mount(target, anchor) {
c: function create() {
span = element("span");
t0 = text(t0_value);
t1 = space();
{
const foo = ctx[1];
console.log({ foo });
debugger;
}
add_location(span, file, 6, 1, 82);
},
m: function mount(target, anchor) {
c() {
h1 = element("h1");
t0 = text(ctx[1]);
t1 = space();
button = element("button");
button.textContent = "reset";
dispose = listen(button, "click", ctx[2]);
},
m(target, anchor) {
c() {
button = element("button");
button.textContent = "foo";
t1 = space();
p = element("p");
t2 = text("number of things: ");
t3 = text(t3_value);
dispose = listen(button, "click", ctx[1]);
},
m(target, anchor) {
c() {
img = element("img");
t = space();
div = element("div");
this.h();
},
l(nodes) {
c() {
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].c();
}
t0 = space();
p = element("p");
t1 = text(ctx[3]);
},
m(target, anchor) {
c() {
p0 = element("p");
button0 = element("button");
button0.textContent = "set handler 1";
t1 = space();
button1 = element("button");
button1.textContent = "set handler 2";
t3 = space();
p1 = element("p");
t4 = text(/*number*/ ctx[1]);
t5 = space();
button2 = element("button");
button2.textContent = "click";
dispose = [
listen(button0, "click", /*updateHandler1*/ ctx[2]),
listen(button1, "click", /*updateHandler2*/ ctx[3]),
listen(button2, "click", function () {
if (is_function(/*clickHandler*/ ctx[0])) /*clickHandler*/ ctx[0].apply(this, arguments);
})
];
},
m(target, anchor) {
c() {
div = element("div");
strong = element("strong");
t0 = text(ctx[6]);
t1 = space();
span = element("span");
t2 = text(t2_value);
t3 = text(" wrote ");
t4 = text(t4_value);
t5 = text(" ago:");
t6 = space();
attr(span, "class", "meta");
html_tag = new HtmlTag(raw_value, null);
attr(div, "class", "comment");
},
m(target, anchor) {
c() {
form = element("form");
input = element("input");
t0 = space();
button = element("button");
button.textContent = "Store";
attr(input, "type", "text");
input.required = true;
dispose = [
listen(input, "input", /*input_input_handler*/ ctx[2]),
listen(form, "submit", /*handleSubmit*/ ctx[1])
];
},
m(target, anchor) {
c() {
create_component(foo.$$.fragment);
t0 = space();
create_component(bar.$$.fragment);
t1 = space();
input = element("input");
dispose = listen(input, "input", ctx[1]);
},
m(target, anchor) {