summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/nested_error/main.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-23 10:58:53 -0400
committerGitHub <noreply@github.com>2023-03-23 10:58:53 -0400
commit81c5ddf9f2cec291be9b7e31e9d8c430585a7519 (patch)
tree1515f09c274983b23d24799c2f03bf04698d04d7 /cli/tests/testdata/run/nested_error/main.ts
parent6e5a631fe094fa77209d51b65adfcc52d738e197 (diff)
fix(inspect): ensure non-compact output when object literal has newline in entry text (#18366)
Fixes `Deno.inspect` to make an object literal non-compact when an entry has multiple lines in it.
Diffstat (limited to 'cli/tests/testdata/run/nested_error/main.ts')
-rw-r--r--cli/tests/testdata/run/nested_error/main.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/nested_error/main.ts b/cli/tests/testdata/run/nested_error/main.ts
new file mode 100644
index 000000000..69828e1ca
--- /dev/null
+++ b/cli/tests/testdata/run/nested_error/main.ts
@@ -0,0 +1,3 @@
+throw {
+ foo: new Error(),
+};