errors: update error name · nodejs/node@1ed3c54 (original) (raw)

`@@ -778,7 +778,7 @@ assert.throws(

`

778

778

`assert.throws(

`

779

779

`() => assert.notDeepStrictEqual(new Date(2000, 3, 14), new Date(2000, 3, 14)),

`

780

780

`{

`

781

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

781

`+

name: 'AssertionError',

`

782

782

`message: 'Expected "actual" not to be strictly deep-equal to: ' +

`

783

783

`util.inspect(new Date(2000, 3, 14))

`

784

784

`}

`

`@@ -790,35 +790,35 @@ assert.throws(

`

790

790

`() => assert.deepStrictEqual(/ab/, /a/),

`

791

791

`{

`

792

792

`code: 'ERR_ASSERTION',

`

793

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

793

`+

name: 'AssertionError',

`

794

794

`` message: ${defaultMsgStartFull}\n\n+ /ab/\n- /a/

``

795

795

`});

`

796

796

`assert.throws(

`

797

797

`() => assert.deepStrictEqual(/a/g, /a/),

`

798

798

`{

`

799

799

`code: 'ERR_ASSERTION',

`

800

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

800

`+

name: 'AssertionError',

`

801

801

`` message: ${defaultMsgStartFull}\n\n+ /a/g\n- /a/

``

802

802

`});

`

803

803

`assert.throws(

`

804

804

`() => assert.deepStrictEqual(/a/i, /a/),

`

805

805

`{

`

806

806

`code: 'ERR_ASSERTION',

`

807

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

807

`+

name: 'AssertionError',

`

808

808

`` message: ${defaultMsgStartFull}\n\n+ /a/i\n- /a/

``

809

809

`});

`

810

810

`assert.throws(

`

811

811

`() => assert.deepStrictEqual(/a/m, /a/),

`

812

812

`{

`

813

813

`code: 'ERR_ASSERTION',

`

814

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

814

`+

name: 'AssertionError',

`

815

815

`` message: ${defaultMsgStartFull}\n\n+ /a/m\n- /a/

``

816

816

`});

`

817

817

`assert.throws(

`

818

818

`() => assert.deepStrictEqual(/a/igm, /a/im),

`

819

819

`{

`

820

820

`code: 'ERR_ASSERTION',

`

821

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

821

`+

name: 'AssertionError',

`

822

822

`` message: ${defaultMsgStartFull}\n\n+ /a/gim\n- /a/im\n ^

``

823

823

`});

`

824

824

``

`@@ -844,22 +844,22 @@ assert.deepStrictEqual({ a: 4, b: '2' }, { a: 4, b: '2' });

`

844

844

`assert.throws(() => assert.deepStrictEqual([4], ['4']),

`

845

845

`{

`

846

846

`code: 'ERR_ASSERTION',

`

847

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

847

`+

name: 'AssertionError',

`

848

848

`` message: ${defaultMsgStartFull}\n\n [\n+ 4\n- '4'\n ]

``

849

849

`});

`

850

850

`assert.throws(

`

851

851

`() => assert.deepStrictEqual({ a: 4 }, { a: 4, b: true }),

`

852

852

`{

`

853

853

`code: 'ERR_ASSERTION',

`

854

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

854

`+

name: 'AssertionError',

`

855

855

`` message: ${defaultMsgStartFull}\n\n +

``

856

856

`'{\n a: 4,\n- b: true\n }'

`

857

857

`});

`

858

858

`assert.throws(

`

859

859

`() => assert.deepStrictEqual(['a'], { 0: 'a' }),

`

860

860

`{

`

861

861

`code: 'ERR_ASSERTION',

`

862

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

862

`+

name: 'AssertionError',

`

863

863

`` message: ${defaultMsgStartFull}\n\n +

``

864

864

`"+ [\n+ 'a'\n+ ]\n- {\n- '0': 'a'\n- }"

`

865

865

`});

`

`@@ -953,7 +953,7 @@ assert.deepStrictEqual(obj1, obj2);

`

953

953

`() => assert.deepStrictEqual(a, b),

`

954

954

`{

`

955

955

`code: 'ERR_ASSERTION',

`

956

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

956

`+

name: 'AssertionError',

`

957

957

`message: /.../g

`

958

958

`}

`

959

959

`);

`

`@@ -977,7 +977,7 @@ assert.throws(

`

977

977

`() => assert.deepStrictEqual([1, 2, 3], [1, 2]),

`

978

978

`{

`

979

979

`code: 'ERR_ASSERTION',

`

980

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

980

`+

name: 'AssertionError',

`

981

981

`` message: ${defaultMsgStartFull}\n\n +

``

982

982

`' [\n' +

`

983

983

`' 1,\n' +

`

`@@ -1063,7 +1063,7 @@ assert.throws(

`

1063

1063

`() => assert.deepStrictEqual(a, b),

`

1064

1064

`{

`

1065

1065

`code: 'ERR_ASSERTION',

`

1066

``

`-

name: 'AssertionError [ERR_ASSERTION]',

`

``

1066

`+

name: 'AssertionError',

`

1067

1067

`message: /a: [Getter: 5]\n- a: [Getter: 6]\n /

`

1068

1068

`}

`

1069

1069

`);

`