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() {
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() {
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() {
button = element("button");
button.textContent = "foo";
t1 = space();
p = element("p");
t2 = text("x: ");
t3 = text(ctx[0]);
dispose = listen(button, "click", ctx[1]);
},
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() {
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() {
span = element("span");
t = text(t_value);
},
m(target, anchor) {
c() {
h1 = element("h1");
t = text(ctx[0]);
},
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() {
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) {