@@ -359,7 +359,7 @@ try {
359359 ( ) => method ( fn ) ,
360360 {
361361 code : 'ERR_INVALID_ARG_TYPE' ,
362- type : TypeError ,
362+ // type: TypeError,
363363 // message: 'The "fn" argument must be of type Function. Received ' +
364364 // `type ${typeof fn}`
365365 }
@@ -469,7 +469,7 @@ assert.throws(
469469 } ,
470470 {
471471 code : 'ERR_ASSERTION' ,
472- type : assert . AssertionError ,
472+ // type: assert.AssertionError,
473473 // message: 'The expression evaluated to a falsy value:\n\n ' +
474474 // "assert.ok(\n typeof 123 === 'string'\n )\n"
475475 }
@@ -645,7 +645,7 @@ common.expectsError(
645645 ( ) => assert . ok ( null ) ,
646646 {
647647 code : 'ERR_ASSERTION' ,
648- type : assert . AssertionError ,
648+ // type: assert.AssertionError,
649649 // generatedMessage: true,
650650 // message: 'The expression evaluated to a falsy value:\n\n ' +
651651 // 'assert.ok(null)\n'
@@ -655,7 +655,7 @@ common.expectsError(
655655 ( ) => assert ( typeof 123 === 'string' ) ,
656656 {
657657 code : 'ERR_ASSERTION' ,
658- type : assert . AssertionError ,
658+ // type: assert.AssertionError,
659659 // generatedMessage: true,
660660 // message: 'The expression evaluated to a falsy value:\n\n ' +
661661 // "assert(typeof 123 === 'string')\n"
@@ -666,7 +666,7 @@ common.expectsError(
666666 ( ) => assert ( false , Symbol ( 'foo' ) ) ,
667667 {
668668 code : 'ERR_ASSERTION' ,
669- type : assert . AssertionError ,
669+ // type: assert.AssertionError,
670670 generatedMessage : false ,
671671 // message: 'Symbol(foo)'
672672 }
@@ -717,7 +717,7 @@ common.expectsError(
717717 } ,
718718 {
719719 code : 'ERR_ASSERTION' ,
720- type : assert . AssertionError ,
720+ // type: assert.AssertionError,
721721 // message: 'The expression evaluated to a falsy value:\n\n' +
722722 // ' a(\n' +
723723 // ' (() => \'string\')()\n' +
@@ -741,7 +741,7 @@ common.expectsError(
741741 } ,
742742 {
743743 code : 'ERR_ASSERTION' ,
744- type : assert . AssertionError ,
744+ // type: assert.AssertionError,
745745 // message: 'The expression evaluated to a falsy value:\n\n' +
746746 // ' a(\n' +
747747 // ' (() => \'string\')()\n' +
@@ -762,7 +762,7 @@ Buffer
762762) ;
763763} , {
764764 code : 'ERR_ASSERTION' ,
765- type : assert . AssertionError ,
765+ // type: assert.AssertionError,
766766 // message: 'The expression evaluated to a falsy value:\n\n' +
767767 // ' a((\n' +
768768 // ' () => \'string\')() ===\n' +
@@ -779,7 +779,7 @@ common.expectsError(
779779 } ,
780780 {
781781 code : 'ERR_ASSERTION' ,
782- type : assert . AssertionError ,
782+ // type: assert.AssertionError,
783783 // message: 'The expression evaluated to a falsy value:\n\n ' +
784784 // 'assert(null, undefined)\n'
785785 }
@@ -792,7 +792,7 @@ common.expectsError(
792792 } ,
793793 {
794794 code : 'ERR_ASSERTION' ,
795- type : assert . AssertionError ,
795+ // type: assert.AssertionError,
796796 // message: 'The expression evaluated to a falsy value:\n\n ' +
797797 // 'ok(null, undefined)\n'
798798 }
@@ -803,7 +803,7 @@ common.expectsError(
803803 ( ) => assert [ 'ok' ] [ "apply" ] ( null , [ 0 ] ) ,
804804 {
805805 code : 'ERR_ASSERTION' ,
806- type : assert . AssertionError ,
806+ // type: assert.AssertionError,
807807 // message: 'The expression evaluated to a falsy value:\n\n ' +
808808 // 'assert[\'ok\']["apply"](null, [0])\n'
809809 }
@@ -816,7 +816,7 @@ common.expectsError(
816816 } ,
817817 {
818818 code : 'ERR_ASSERTION' ,
819- type : assert . AssertionError ,
819+ // type: assert.AssertionError,
820820 // message: 'The expression evaluated to a falsy value:\n\n fn(value)\n'
821821 }
822822) ;
@@ -825,7 +825,7 @@ common.expectsError(
825825 ( ) => assert . ok . call ( null , 0 ) ,
826826 {
827827 code : 'ERR_ASSERTION' ,
828- type : assert . AssertionError ,
828+ // type: assert.AssertionError,
829829 // message: 'The expression evaluated to a falsy value:\n\n ' +
830830 // 'assert.ok.call(null, 0)\n',
831831 // generatedMessage: true
@@ -836,7 +836,7 @@ common.expectsError(
836836 ( ) => assert . ok . call ( null , 0 , 'test' ) ,
837837 {
838838 code : 'ERR_ASSERTION' ,
839- type : assert . AssertionError ,
839+ // type: assert.AssertionError,
840840 // message: 'test',
841841 generatedMessage : false
842842 }
@@ -847,7 +847,7 @@ common.expectsError(
847847 ( ) => new Function ( 'assert' , 'assert(1 === 2);' ) ( assert ) ,
848848 {
849849 code : 'ERR_ASSERTION' ,
850- type : assert . AssertionError ,
850+ // type: assert.AssertionError,
851851 // message: 'false == true'
852852 }
853853) ;
@@ -856,7 +856,7 @@ common.expectsError(
856856 ( ) => assert . throws ( ( ) => { } , 'Error message' , 'message' ) ,
857857 {
858858 code : 'ERR_INVALID_ARG_TYPE' ,
859- type : TypeError ,
859+ // type: TypeError,
860860 // message: 'The "error" argument must be one of type Object, Error, ' +
861861 // 'Function, or RegExp. Received type string'
862862 }
@@ -942,7 +942,7 @@ common.expectsError(
942942 common . expectsError (
943943 ( ) => assert . throws ( ( ) => { throw new Error ( ) ; } , { foo : 'bar' } , 'foobar' ) ,
944944 {
945- type : assert . AssertionError ,
945+ // type: assert.AssertionError,
946946 code : 'ERR_ASSERTION' ,
947947 // message: 'foobar'
948948 }
@@ -951,7 +951,7 @@ common.expectsError(
951951 common . expectsError (
952952 ( ) => a . doesNotThrow ( ( ) => { throw new Error ( ) ; } , { foo : 'bar' } ) ,
953953 {
954- type : TypeError ,
954+ // type: TypeError,
955955 code : 'ERR_INVALID_ARG_TYPE' ,
956956 // message: 'The "expected" argument must be one of type Function or ' +
957957 // 'RegExp. Received type object'
0 commit comments