File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -442,8 +442,10 @@ module.exports = {
442442 getMessage,
443443 SystemError,
444444 codes,
445- // These are exported only to facilitate testing.
445+ // This is exported only to facilitate testing.
446446 E,
447+ // This allows us to tell the type of the errors without using
448+ // instanceof, which is necessary in WPT harness.
447449 get useOriginalName ( ) { return useOriginalName ; } ,
448450 set useOriginalName ( value ) { useOriginalName = value ; }
449451} ;
Original file line number Diff line number Diff line change 22
33'use strict' ;
44
5+ // This tests `internal/errors.useOriginalName`
6+ // This testing feature is needed to allows us to assert the types of
7+ // errors without using instanceof, which is necessary in WPT harness.
8+ // Refs: https://github.com/nodejs/node/pull/22556
9+
510require ( '../common' ) ;
611const assert = require ( 'assert' ) ;
712const errors = require ( 'internal/errors' ) ;
You can’t perform that action at this time.
0 commit comments