pulumi/sdk/nodejs/tests
Justin Van Patten 12a27f6bf3
[sdk/nodejs] Throw from output() on circular structures (#17852)
Note to reviewers: Review each commit separately. The first commit
contains only formatting changes (no functional changes). The actual fix
is in the second commit.

---

`pulumi.output(...)` cannot handle circular structures. Passing one to
`output()` will currently result in a "Maximum call stack exceeded"
error.

This commit adds a better error message for when a circular structure is
detected, so that users know what the actual problem is and can address
it. The error that is thrown is similar to the error thrown when passing
a circular structure to `JSON.stringify()`.

Note: It may be possible to make circular structures work with
`output()`, but it would require more time/effort to get the
implementation right and not regress the perf fix from
https://github.com/pulumi/pulumi/pull/3851.

Fixes #17778
2024-11-27 18:40:29 +00:00
..
automation always run multiple stacks concurrently test locally (#17502) 2024-10-07 21:15:17 +00:00
cmd/dynamic Allow accessing configuration in Node.js dynamic providers (#17697) 2024-11-07 14:34:11 +00:00
runtime set mock monitor in global store (#17769) 2024-11-21 09:39:37 +00:00
sxs_ts_test Replace Rome with Biome in the NodeJS SDK (#16456) 2024-06-24 11:14:56 +00:00
config.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
constants.ts ci: improve x-plat testing on Windows 2022-03-06 14:45:26 -08:00
init.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
iterable.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
options.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
output.spec.ts [sdk/nodejs] Throw from output() on circular structures (#17852) 2024-11-27 18:40:29 +00:00
provider.spec.ts Add google-protobuf types (#14422) 2023-10-27 09:55:44 +00:00
resource.spec.ts [sdk/nodejs] Fix provider for resource methods (#13796) 2023-08-30 14:49:53 +00:00
stackReference.spec.ts Fix TypeScript checking of Output maps of "any" values (#16959) 2024-08-15 19:09:21 +00:00
unwrap.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
util.ts Apply autoformat 2023-04-28 18:27:10 -04:00