(value)
| 220 | }); |
| 221 | |
| 222 | function clientReference(value) { |
| 223 | return Object.defineProperties( |
| 224 | function () { |
| 225 | throw new Error('Cannot call a client function from the server.'); |
| 226 | }, |
| 227 | { |
| 228 | $$typeof: {value: Symbol.for('react.client.reference')}, |
| 229 | value: {value: value}, |
| 230 | }, |
| 231 | ); |
| 232 | } |
| 233 | |
| 234 | it('can render a Server Component', async () => { |
| 235 | function Bar({text}) { |