pull/12507/head
Rich Harris 2 years ago
parent 46a1fc80e4
commit 6dba6adbf9

@ -903,7 +903,7 @@ function serialize_inline_component(node, component_name, context, anchor = cont
serialized_slots.push(b.init(slot_name, slot_fn)); serialized_slots.push(b.init(slot_name, slot_fn));
// and a `children` prop that errors // and a `children` prop that errors
push_prop(b.init('children', b.id('$.invalid_children_snippet'))); push_prop(b.init('children', b.id('$.invalid_default_snippet')));
} }
} else { } else {
serialized_slots.push(b.init(slot_name, slot_fn)); serialized_slots.push(b.init(slot_name, slot_fn));

@ -975,7 +975,7 @@ function serialize_inline_component(node, expression, context) {
serialized_slots.push(b.init(slot_name, slot_fn)); serialized_slots.push(b.init(slot_name, slot_fn));
// and a `children` prop that errors // and a `children` prop that errors
push_prop(b.init('children', b.id('$.invalid_children_snippet'))); push_prop(b.init('children', b.id('$.invalid_default_snippet')));
} }
} else { } else {
serialized_slots.push(b.init(slot_name, slot_fn)); serialized_slots.push(b.init(slot_name, slot_fn));

@ -164,7 +164,7 @@ export {
export { snapshot } from '../shared/clone.js'; export { snapshot } from '../shared/clone.js';
export { noop } from '../shared/utils.js'; export { noop } from '../shared/utils.js';
export { export {
invalid_children_snippet, invalid_default_snippet,
validate_component, validate_component,
validate_dynamic_element_tag, validate_dynamic_element_tag,
validate_store, validate_store,

@ -555,7 +555,7 @@ export { push_element, pop_element } from './dev.js';
export { snapshot } from '../shared/clone.js'; export { snapshot } from '../shared/clone.js';
export { export {
invalid_children_snippet, invalid_default_snippet,
validate_component, validate_component,
validate_dynamic_element_tag, validate_dynamic_element_tag,
validate_void_dynamic_element validate_void_dynamic_element

@ -4,9 +4,7 @@ import { is_void } from '../../constants.js';
import * as w from './warnings.js'; import * as w from './warnings.js';
import * as e from './errors.js'; import * as e from './errors.js';
export function invalid_children_snippet() { export { invalid_default_snippet } from './errors.js';
e.invalid_default_snippet();
}
/** /**
* Validate that the function behind `<Component />` isn't a snippet. * Validate that the function behind `<Component />` isn't a snippet.

Loading…
Cancel
Save