Jack Goodall 1 month ago
parent 2c6316bcae
commit 03b1d7758d

@ -98,12 +98,7 @@ export function build_inline_component(node, expression, context) {
const { get, set } = init_spread_bindings(attribute.expression, context);
push_prop(b.get(attribute.name, [b.return(b.call(get))]));
push_prop(
b.set(attribute.name, [
b.stmt(b.call(set, b.id('$$value'))),
b.stmt(b.assignment('=', b.id('$$settled'), b.false))
])
);
push_prop(b.set(attribute.name, [b.stmt(b.call(set, b.id('$$value')))]));
} else if (attribute.expression.type === 'SequenceExpression') {
const [get, set] = /** @type {SequenceExpression} */ (context.visit(attribute.expression))
.expressions;

@ -649,13 +649,13 @@ function return_builder(argument = null) {
}
/**
* @param {string | ESTree.TemplateLiteral} str
* @param {string} str
* @returns {ESTree.ThrowStatement}
*/
export function throw_error(str) {
return {
type: 'ThrowStatement',
argument: new_builder('Error', typeof str === 'string' ? literal(str) : str)
argument: new_builder('Error', literal(str))
};
}

@ -511,7 +511,7 @@ export { assign_payload, copy_payload } from './payload.js';
export { snapshot } from '../shared/clone.js';
export { fallback, to_array, noop } from '../shared/utils.js';
export { fallback, to_array } from '../shared/utils.js';
export {
invalid_default_snippet,

Loading…
Cancel
Save