proxied-state-each-blocks
Dominic Gannaway 2 years ago
parent 4288843576
commit 28ac98e3f0

@ -15,9 +15,7 @@
"end": 36, "end": 36,
"type": "StyleDirective", "type": "StyleDirective",
"name": "color", "name": "color",
"modifiers": [ "modifiers": ["important"],
"important"
],
"value": [ "value": [
{ {
"type": "MustacheTag", "type": "MustacheTag",

@ -9,10 +9,7 @@
"start": 0, "start": 0,
"end": 30, "end": 30,
"data": " svelte-ignore foo bar ", "data": " svelte-ignore foo bar ",
"ignores": [ "ignores": ["foo", "bar"]
"foo",
"bar"
]
} }
] ]
} }

@ -8,6 +8,6 @@ export default test({
async test({ assert, target, component }) { async test({ assert, target, component }) {
await Promise.resolve(); await Promise.resolve();
await Promise.resolve(); await Promise.resolve();
assert.deepEqual(component.log, ['a1: ', {}, 'b1: ', {}]); assert.deepEqual(component.log, ['a1: ', true, 'b1: ', true]);
} }
}); });

@ -18,11 +18,11 @@
queueMicrotask(b); queueMicrotask(b);
function a() { function a() {
a1 ??= {}; a1 ??= true;
} }
function b() { function b() {
b1 ?? (b1 = {}); b1 ?? (b1 = true);
} }
</script> </script>

Loading…
Cancel
Save