Commit 83080e26 authored by Janka Uryga's avatar Janka Uryga

add failing tests

parent f5c8b6ae
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} />
}
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}/>;
}
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} />
}
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}/>;
}
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} />
}
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}/>;
}
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} />
}
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}/>;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment