pulumi/sdk/nodejs/tests/runtime/langhost
Fraser Waters d744f22284
Don't error on output toString in debug text (#18016)
Fixes https://github.com/pulumi/pulumi/issues/17736

This change is two parts. Firstly we change the `Output<T>.toString`
error to a specific error type. We then catch that specific error when
trying to stringify properties for debug text. If we see that specific
error type we just assume `Output<T>`, else for other errors we let them
bubble up to the user (as before).

This should give more complete coverage of all types of objects that
could potentially nest an output value, rather than just special casing
the toString logic to check for output instances in arrays.
2025-01-30 17:15:54 +00:00
..
cases Don't error on output toString in debug text (#18016) 2025-01-30 17:15:54 +00:00
run.spec.ts Don't error on output toString in debug text (#18016) 2025-01-30 17:15:54 +00:00