pulumi/sdk/nodejs/tests
Julien a07dbaa0fd
Gracefully handle errors that don't implement toString (#18080)
In JavaScript you can throw *anything*, not just errors. Our error
handler was falling back to `”” + err` to stringify the error, however
if that object does not implement `toString()`, the error handler itself
throws with a type error.

We can handle this more gracefully using `util.inspect`, which does not
crash, unless the error is very naughty and overrides the
`util.inspect.custom` hook and throws in that.

Fixes https://github.com/pulumi/pulumi/issues/18068
2024-12-20 14:29:09 +00:00
..
automation Bump golang.org/x/crypto from 0.24.0 to 0.31.0 in /sdk in the go_modules group across 1 directory (#18015) 2024-12-12 01:29:41 +00:00
cmd Gracefully handle errors that don't implement toString (#18080) 2024-12-20 14:29:09 +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