Skip to content

Commit 37d08a2

Browse files
committed
add no-inlines
1 parent 3a3e1f0 commit 37d08a2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function default_equals(a, b) {
148148
* @returns {import('./types.js').SourceSignal<V>}
149149
*/
150150
function create_source_signal(flags, value) {
151-
const source = {
151+
return {
152152
// consumers
153153
c: null,
154154
// equals
@@ -160,7 +160,6 @@ function create_source_signal(flags, value) {
160160
// context: We can remove this if we get rid of beforeUpdate/afterUpdate
161161
x: null
162162
};
163-
return source;
164163
}
165164

166165
/**
@@ -1061,7 +1060,7 @@ export function derived(init, equals) {
10611060
const is_unowned = current_effect === null;
10621061
const flags = is_unowned ? DERIVED | UNOWNED : DERIVED;
10631062
const signal = /** @type {import('./types.js').ComputationSignal<V>} */ (
1064-
create_computation_signal(flags | CLEAN, UNINITIALIZED, current_block)
1063+
/* @__NOINLINE__ */ create_computation_signal(flags | CLEAN, UNINITIALIZED, current_block)
10651064
);
10661065
signal.i = init;
10671066
signal.x = current_component_context;
@@ -1080,7 +1079,7 @@ export function derived(init, equals) {
10801079
*/
10811080
/*#__NO_SIDE_EFFECTS__*/
10821081
export function source(initial_value, equals) {
1083-
const source = create_source_signal(SOURCE | CLEAN, initial_value);
1082+
const source = /* @__NOINLINE__ */ create_source_signal(SOURCE | CLEAN, initial_value);
10841083
source.x = current_component_context;
10851084
source.e = get_equals_method(equals);
10861085
return source;
@@ -1128,7 +1127,7 @@ export function untrack(fn) {
11281127
* @returns {import('./types.js').EffectSignal}
11291128
*/
11301129
function internal_create_effect(type, init, sync, block, schedule) {
1131-
const signal = create_computation_signal(type | DIRTY, null, block);
1130+
const signal = /* @__NOINLINE__ */ create_computation_signal(type | DIRTY, null, block);
11321131
signal.i = init;
11331132
signal.x = current_component_context;
11341133
if (schedule) {
@@ -1679,7 +1678,7 @@ export function onDestroy(fn) {
16791678
* @returns {void}
16801679
*/
16811680
export function push(props, runes = false, immutable = false) {
1682-
const context_stack_item = create_component_context(props);
1681+
const context_stack_item = /* @__NOINLINE__ */ create_component_context(props);
16831682
context_stack_item.r = runes;
16841683
context_stack_item.i = immutable;
16851684
current_component_context = context_stack_item;

0 commit comments

Comments
 (0)