Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
83080e26
Commit
83080e26
authored
Jan 15, 2026
by
Janka Uryga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add failing tests
parent
f5c8b6ae
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
120 additions
and
0 deletions
+120
-0
input.js
...rms/tests/fixture/server-actions/server-graph/72/input.js
+14
-0
output.js
...ms/tests/fixture/server-actions/server-graph/72/output.js
+15
-0
input.js
...rms/tests/fixture/server-actions/server-graph/73/input.js
+14
-0
output.js
...ms/tests/fixture/server-actions/server-graph/73/output.js
+15
-0
input.js
...rms/tests/fixture/server-actions/server-graph/74/input.js
+15
-0
output.js
...ms/tests/fixture/server-actions/server-graph/74/output.js
+16
-0
input.js
...rms/tests/fixture/server-actions/server-graph/75/input.js
+15
-0
output.js
...ms/tests/fixture/server-actions/server-graph/75/output.js
+16
-0
No files found.
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/72/input.js
0 → 100644
View file @
83080e26
import
{
Client
}
from
'components'
export
function
Component
()
{
const
value
=
3
// `value` is not referenced in the closure's body, but it's used as
// the default value for `x`, so it still needs to be available
async
function
closedOverDefaultArgValue
(
x
=
value
)
{
'use server'
return
x
}
return
<
Client
action
=
{
closedOverDefaultArgValue
}
/
>
}
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/72/output.js
0 → 100644
View file @
83080e26
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */
import
{
Client
}
from
'components'
;
export
const
// `value` is not referenced in the closure's body, but it's used as
// the default value for `x`, so it still needs to be available
$$RSC_SERVER_ACTION_0
=
async
function
closedOverDefaultArgValue
(
$$ACTION_CLOSURE_BOUND
,
x
=
value
)
{
var
[
$$ACTION_ARG_0
]
=
await
decryptActionBoundArgs
(
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
$$ACTION_CLOSURE_BOUND
);
return
x
;
};
registerServerReference
(
$$RSC_SERVER_ACTION_0
,
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
null
);
export
function
Component
()
{
const
value
=
3
;
var
closedOverDefaultArgValue
=
$$RSC_SERVER_ACTION_0
.
bind
(
null
,
encryptActionBoundArgs
(
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
value
));
return
<
Client
action
=
{
closedOverDefaultArgValue
}
/>
;
}
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/73/input.js
0 → 100644
View file @
83080e26
import
{
Client
}
from
'components'
export
function
Component
()
{
const
value
=
3
// `value` is not referenced in the closure's body, but it's used as
// the default value for `x`, so it still needs to be available
const
closedOverDefaultArgValue
=
async
(
x
=
value
)
=>
{
'use server'
return
x
}
return
<
Client
action
=
{
closedOverDefaultArgValue
}
/
>
}
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/73/output.js
0 → 100644
View file @
83080e26
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */
import
{
Client
}
from
'components'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
closedOverDefaultArgValue
(
$$ACTION_CLOSURE_BOUND
,
x
=
value
)
{
var
[
$$ACTION_ARG_0
]
=
await
decryptActionBoundArgs
(
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
$$ACTION_CLOSURE_BOUND
);
return
x
;
};
registerServerReference
(
$$RSC_SERVER_ACTION_0
,
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
null
);
export
function
Component
()
{
const
value
=
3
;
// `value` is not referenced in the closure's body, but it's used as
// the default value for `x`, so it still needs to be available
const
closedOverDefaultArgValue
=
$$RSC_SERVER_ACTION_0
.
bind
(
null
,
encryptActionBoundArgs
(
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
value
));
return
<
Client
action
=
{
closedOverDefaultArgValue
}
/>
;
}
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/74/input.js
0 → 100644
View file @
83080e26
import
{
Client
}
from
'components'
export
function
Component
()
{
const
value
=
3
const
obj
=
{}
// `value` is not referenced in the closure's body, but it's used as
// the default value for `<param0>.x`, so it still needs to be available
async
function
closedOverDefaultArgValue
({
x
=
value
}
=
obj
)
{
'use server'
return
x
}
return
<
Client
action
=
{
closedOverDefaultArgValue
}
/
>
}
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/74/output.js
0 → 100644
View file @
83080e26
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */
import
{
Client
}
from
'components'
;
export
const
// `value` is not referenced in the closure's body, but it's used as
// the default value for `<param0>.x`, so it still needs to be available
$$RSC_SERVER_ACTION_0
=
async
function
closedOverDefaultArgValue
(
$$ACTION_CLOSURE_BOUND
,
{
x
=
value
}
=
obj
)
{
var
[
$$ACTION_ARG_0
,
$$ACTION_ARG_1
]
=
await
decryptActionBoundArgs
(
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
$$ACTION_CLOSURE_BOUND
);
return
x
;
};
registerServerReference
(
$$RSC_SERVER_ACTION_0
,
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
null
);
export
function
Component
()
{
const
value
=
3
;
const
obj
=
{};
var
closedOverDefaultArgValue
=
$$RSC_SERVER_ACTION_0
.
bind
(
null
,
encryptActionBoundArgs
(
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
value
,
obj
));
return
<
Client
action
=
{
closedOverDefaultArgValue
}
/>
;
}
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/75/input.js
0 → 100644
View file @
83080e26
import
{
Client
}
from
'components'
export
function
Component
()
{
const
value
=
3
const
obj
=
{}
// `value` is not referenced in the closure's body, but it's used as
// the default value for `<param0>.x`, so it still needs to be available
const
closedOverDefaultArgValue
=
async
({
x
=
value
}
=
obj
)
=>
{
'use server'
return
x
}
return
<
Client
action
=
{
closedOverDefaultArgValue
}
/
>
}
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/75/output.js
0 → 100644
View file @
83080e26
import
{
registerServerReference
}
from
"private-next-rsc-server-reference"
;
import
{
encryptActionBoundArgs
,
decryptActionBoundArgs
}
from
"private-next-rsc-action-encryption"
;
/* __next_internal_action_entry_do_not_use__ {"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0"} */
import
{
Client
}
from
'components'
;
export
const
$$RSC_SERVER_ACTION_0
=
async
function
closedOverDefaultArgValue
(
$$ACTION_CLOSURE_BOUND
,
{
x
=
value
}
=
obj
)
{
var
[
$$ACTION_ARG_0
,
$$ACTION_ARG_1
]
=
await
decryptActionBoundArgs
(
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
$$ACTION_CLOSURE_BOUND
);
return
x
;
};
registerServerReference
(
$$RSC_SERVER_ACTION_0
,
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
null
);
export
function
Component
()
{
const
value
=
3
;
const
obj
=
{};
// `value` is not referenced in the closure's body, but it's used as
// the default value for `<param0>.x`, so it still needs to be available
const
closedOverDefaultArgValue
=
$$RSC_SERVER_ACTION_0
.
bind
(
null
,
encryptActionBoundArgs
(
"606a88810ecce4a4e8b59d53b8327d7e98bbf251d7"
,
value
,
obj
));
return
<
Client
action
=
{
closedOverDefaultArgValue
}
/>
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment