Skip to content

Commit 03b1d77

Browse files
committed
clean up
1 parent 2c6316b commit 03b1d77

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,7 @@ export function build_inline_component(node, expression, context) {
9898
const { get, set } = init_spread_bindings(attribute.expression, context);
9999

100100
push_prop(b.get(attribute.name, [b.return(b.call(get))]));
101-
push_prop(
102-
b.set(attribute.name, [
103-
b.stmt(b.call(set, b.id('$$value'))),
104-
b.stmt(b.assignment('=', b.id('$$settled'), b.false))
105-
])
106-
);
101+
push_prop(b.set(attribute.name, [b.stmt(b.call(set, b.id('$$value')))]));
107102
} else if (attribute.expression.type === 'SequenceExpression') {
108103
const [get, set] = /** @type {SequenceExpression} */ (context.visit(attribute.expression))
109104
.expressions;

packages/svelte/src/compiler/utils/builders.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,13 @@ function return_builder(argument = null) {
649649
}
650650

651651
/**
652-
* @param {string | ESTree.TemplateLiteral} str
652+
* @param {string} str
653653
* @returns {ESTree.ThrowStatement}
654654
*/
655655
export function throw_error(str) {
656656
return {
657657
type: 'ThrowStatement',
658-
argument: new_builder('Error', typeof str === 'string' ? literal(str) : str)
658+
argument: new_builder('Error', literal(str))
659659
};
660660
}
661661

packages/svelte/src/internal/server/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ export { assign_payload, copy_payload } from './payload.js';
511511

512512
export { snapshot } from '../shared/clone.js';
513513

514-
export { fallback, to_array, noop } from '../shared/utils.js';
514+
export { fallback, to_array } from '../shared/utils.js';
515515

516516
export {
517517
invalid_default_snippet,

0 commit comments

Comments
 (0)