ON
Size: a a a
ON
ON
PM
In strict mode code, however, this will throw a SyntaxError:
'use strict';
L: function F() {}
// SyntaxError: functions cannot be labelled
PM
ON
ON
'use strict';
$: {function foo() {} }
ON
PM
PM
PM
ON
$: foo = (name) => name + x + $$invalidate()
хотел какие-то внутриенности замыканием вытащить, т.к. ф-я пересоздается в другом месте, но там ничего интересного...AP
In strict mode code, however, this will throw a SyntaxError:
'use strict';
L: function F() {}
// SyntaxError: functions cannot be labelled
ON
<footer class={['footer', mix].join(' ')}>
AP
ON
<script>
export let mix = '';
</script>
<h1 class={['title', mix].join(' ')}>
<slot/>
</h1>
AP
<script>
export let mix = '';
</script>
<h1 class={['title', mix].join(' ')}>
<slot/>
</h1>
PM
ON
ON