diff options
| author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-03-21 13:12:13 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-21 13:12:13 +0900 |
| commit | 896d7f02cb284ad3a05299218dd849685cd33390 (patch) | |
| tree | 490c05d39930e1bfe7a097851bb55a6ddaef540b /cli/tests/testdata/run/with_package_json | |
| parent | 4c34a2f2df595fa43b3eb06722c3ad742450d8bd (diff) | |
chore(ext/console): inspect anonymous function as `[Function (anonymous)]` (#18283)
This PR changes the inspect result of anonymous functions from
`[Function]` to `[Function (anonymous)]`. This behavior is aligned
to `util.inspect` of Node.js.
Diffstat (limited to 'cli/tests/testdata/run/with_package_json')
| -rw-r--r-- | cli/tests/testdata/run/with_package_json/no_deno_json/main.out | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/main.out b/cli/tests/testdata/run/with_package_json/no_deno_json/main.out index a41c8787a..45bcbb819 100644 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/main.out +++ b/cli/tests/testdata/run/with_package_json/no_deno_json/main.out @@ -1,9 +1,13 @@ [WILDCARD]package.json file found at '[WILDCARD]with_package_json[WILDCARD]package.json' [WILDCARD] ok -[Chalk] { - constructor: [Function], +[Chalk (anonymous)] { + constructor: [Function (anonymous)], Instance: [Class: ChalkClass], supportsColor: false, - stderr: [Chalk] { constructor: [Function], Instance: [Class: ChalkClass], supportsColor: false } + stderr: [Chalk (anonymous)] { + constructor: [Function (anonymous)], + Instance: [Class: ChalkClass], + supportsColor: false + } } |
