lib: update inspect output format for subclasses · nodejs/node@396cc8e · GitHub
Skip to content

Commit 396cc8e

Browse files
miguelmarcondesftargos
authored andcommitted
lib: update inspect output format for subclasses
PR-URL: #59687 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 69b5607 commit 396cc8e

3 files changed

Lines changed: 40 additions & 7 deletions

File tree

lib/internal/util/inspect.js

Lines changed: 13 additions & 3 deletions

test/es-module/test-esm-loader-with-syntax-error.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('ESM: loader with syntax error', { concurrency: !process.env.TEST_PARAL
1313
path('print-error-message.js'),
1414
]);
1515

16-
match(stderr, /SyntaxError \[Error\]:/);
16+
match(stderr, /SyntaxError/);
1717
ok(!stderr.includes('Bad command or file name'));
1818
notStrictEqual(code, 0);
1919
});

test/parallel/test-util-inspect.js

Lines changed: 26 additions & 3 deletions

0 commit comments

Comments
 (0)