Source: node-json-parse-better-errors Version: 1.0.2+~cs3.3.1-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20220412 ftbfs-bookworm
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules binary > dh binary > dh_update_autotools_config > dh_autoreconf > dh_auto_configure --buildsystem=nodejs > Link node_modules/json-parse-even-better-errors -> > ../json-parse-even-better-errors > Link node_modules/@types/json-parse-better-errors -> > ../../types-json-parse-better-errors > dh_auto_build --buildsystem=nodejs > No build command found, searching known files > No build command found, searching known files > No build command found, searching known files > dh_auto_test --buildsystem=nodejs > ln -s ../. node_modules/json-parse-better-errors > cd ./json-parse-even-better-errors && sh -ex > ../debian/nodejs/json-parse-even-better-errors/test > + tap -J test/index.js > TAP version 13 > (node:3398291) DeprecationWarning: deepEqual() is deprecated, use same() > instead > (Use `node --trace-deprecation ...` to show where the warning was created) > (node:3398291) DeprecationWarning: isa() is deprecated, use type() instead > ok 1 - test/index.js # time=198.213ms { > # Subtest: parses JSON > 1..6 > ok 1 - object > ok 2 - array > ok 3 - num > ok 4 - null > ok 5 - true > ok 6 - false > ok 1 - parses JSON # time=16.883ms > > # Subtest: preserves indentation and newline styles > # Subtest: {"type":"object","newline":"\n","indent":""} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 1 - {"type":"object","newline":"\\n","indent":""} # time=1.389ms > > # Subtest: {"type":"array","newline":"\n","indent":""} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 2 - {"type":"array","newline":"\\n","indent":""} # time=1.004ms > > # Subtest: {"type":"object","newline":"\n","indent":" "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 3 - {"type":"object","newline":"\\n","indent":" "} # time=0.938ms > > # Subtest: {"type":"array","newline":"\n","indent":" "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 4 - {"type":"array","newline":"\\n","indent":" "} # time=0.939ms > > # Subtest: {"type":"object","newline":"\n","indent":"\t"} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 5 - {"type":"object","newline":"\\n","indent":"\\t"} # time=0.822ms > > # Subtest: {"type":"array","newline":"\n","indent":"\t"} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 6 - {"type":"array","newline":"\\n","indent":"\\t"} # time=0.893ms > > # Subtest: {"type":"object","newline":"\n","indent":" \t \t "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 7 - {"type":"object","newline":"\\n","indent":" \\t \\t "} # > time=0.589ms > > # Subtest: {"type":"array","newline":"\n","indent":" \t \t "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 8 - {"type":"array","newline":"\\n","indent":" \\t \\t "} # > time=0.622ms > > # Subtest: {"type":"object","newline":"\r\n","indent":""} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 9 - {"type":"object","newline":"\\r\\n","indent":""} # time=0.609ms > > # Subtest: {"type":"array","newline":"\r\n","indent":""} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 10 - {"type":"array","newline":"\\r\\n","indent":""} # time=0.655ms > > # Subtest: {"type":"object","newline":"\r\n","indent":" "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 11 - {"type":"object","newline":"\\r\\n","indent":" "} # > time=0.627ms > > # Subtest: {"type":"array","newline":"\r\n","indent":" "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 12 - {"type":"array","newline":"\\r\\n","indent":" "} # > time=0.664ms > > # Subtest: {"type":"object","newline":"\r\n","indent":"\t"} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 13 - {"type":"object","newline":"\\r\\n","indent":"\\t"} # > time=0.613ms > > # Subtest: {"type":"array","newline":"\r\n","indent":"\t"} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 14 - {"type":"array","newline":"\\r\\n","indent":"\\t"} # > time=0.611ms > > # Subtest: {"type":"object","newline":"\r\n","indent":" \t \t "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 15 - {"type":"object","newline":"\\r\\n","indent":" \\t \\t "} # > time=0.615ms > > # Subtest: {"type":"array","newline":"\r\n","indent":" \t \t "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 16 - {"type":"array","newline":"\\r\\n","indent":" \\t \\t "} # > time=0.618ms > > # Subtest: {"type":"object","newline":"\n\n","indent":""} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 17 - {"type":"object","newline":"\\n\\n","indent":""} # > time=0.616ms > > # Subtest: {"type":"array","newline":"\n\n","indent":""} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 18 - {"type":"array","newline":"\\n\\n","indent":""} # time=4.774ms > > # Subtest: {"type":"object","newline":"\n\n","indent":" "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 19 - {"type":"object","newline":"\\n\\n","indent":" "} # > time=0.946ms > > # Subtest: {"type":"array","newline":"\n\n","indent":" "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 20 - {"type":"array","newline":"\\n\\n","indent":" "} # > time=1.015ms > > # Subtest: {"type":"object","newline":"\n\n","indent":"\t"} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 21 - {"type":"object","newline":"\\n\\n","indent":"\\t"} # > time=0.955ms > > # Subtest: {"type":"array","newline":"\n\n","indent":"\t"} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 22 - {"type":"array","newline":"\\n\\n","indent":"\\t"} # > time=0.558ms > > # Subtest: {"type":"object","newline":"\n\n","indent":" \t \t "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 23 - {"type":"object","newline":"\\n\\n","indent":" \\t \\t "} # > time=0.553ms > > # Subtest: {"type":"array","newline":"\n\n","indent":" \t \t "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 24 - {"type":"array","newline":"\\n\\n","indent":" \\t \\t "} # > time=0.491ms > > # Subtest: {"type":"object","newline":"\r\n\r\n","indent":""} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 25 - {"type":"object","newline":"\\r\\n\\r\\n","indent":""} # > time=0.502ms > > # Subtest: {"type":"array","newline":"\r\n\r\n","indent":""} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 26 - {"type":"array","newline":"\\r\\n\\r\\n","indent":""} # > time=0.481ms > > # Subtest: {"type":"object","newline":"\r\n\r\n","indent":" "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 27 - {"type":"object","newline":"\\r\\n\\r\\n","indent":" "} # > time=0.489ms > > # Subtest: {"type":"array","newline":"\r\n\r\n","indent":" "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 28 - {"type":"array","newline":"\\r\\n\\r\\n","indent":" "} # > time=0.494ms > > # Subtest: {"type":"object","newline":"\r\n\r\n","indent":"\t"} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 29 - {"type":"object","newline":"\\r\\n\\r\\n","indent":"\\t"} # > time=0.497ms > > # Subtest: {"type":"array","newline":"\r\n\r\n","indent":"\t"} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 30 - {"type":"array","newline":"\\r\\n\\r\\n","indent":"\\t"} # > time=0.503ms > > # Subtest: {"type":"object","newline":"\r\n\r\n","indent":" \t \t "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 31 - {"type":"object","newline":"\\r\\n\\r\\n","indent":" \\t \\t > "} # time=0.484ms > > # Subtest: {"type":"array","newline":"\r\n\r\n","indent":" \t \t "} > ok 1 - preserved newline > ok 2 - preserved indent > 1..2 > ok 32 - {"type":"array","newline":"\\r\\n\\r\\n","indent":" \\t \\t > "} # time=0.486ms > > 1..32 > ok 2 - preserves indentation and newline styles # time=107.548ms > > # Subtest: indentation is the default when object/array is empty > # Subtest: {"str":"{}","newline":"","expect":"\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 1 - {"str":"{}","newline":"","expect":"\\n"} # time=0.741ms > > # Subtest: {"str":"[]","newline":"","expect":"\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 2 - {"str":"[]","newline":"","expect":"\\n"} # time=0.571ms > > # Subtest: {"str":"{}","newline":"\n","expect":"\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 3 - {"str":"{}","newline":"\\n","expect":"\\n"} # time=0.573ms > > # Subtest: {"str":"[]","newline":"\n","expect":"\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 4 - {"str":"[]","newline":"\\n","expect":"\\n"} # time=0.577ms > > # Subtest: {"str":"{}","newline":"\r\n","expect":"\r\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 5 - {"str":"{}","newline":"\\r\\n","expect":"\\r\\n"} # > time=0.544ms > > # Subtest: {"str":"[]","newline":"\r\n","expect":"\r\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 6 - {"str":"[]","newline":"\\r\\n","expect":"\\r\\n"} # > time=0.557ms > > # Subtest: {"str":"{}","newline":"\n\n","expect":"\n\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 7 - {"str":"{}","newline":"\\n\\n","expect":"\\n\\n"} # > time=0.557ms > > # Subtest: {"str":"[]","newline":"\n\n","expect":"\n\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 8 - {"str":"[]","newline":"\\n\\n","expect":"\\n\\n"} # > time=0.566ms > > # Subtest: {"str":"{}","newline":"\r\n\r\n","expect":"\r\n\r\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 9 - {"str":"{}","newline":"\\r\\n\\r\\n","expect":"\\r\\n\\r\\n"} > # time=0.589ms > > # Subtest: {"str":"[]","newline":"\r\n\r\n","expect":"\r\n\r\n"} > ok 1 - got expected newline > ok 2 - got expected default indentation > 1..2 > ok 10 - {"str":"[]","newline":"\\r\\n\\r\\n","expect":"\\r\\n\\r\\n"} > # time=0.554ms > > 1..10 > ok 3 - indentation is the default when object/array is empty # > time=24.889ms > > # Subtest: parses JSON if it is a Buffer, removing BOM bytes > ok 1 - should be equivalent > ok 2 - strips the byte order marker > 1..2 > ok 4 - parses JSON if it is a Buffer, removing BOM bytes # time=1.88ms > > # Subtest: better errors when faced with \b and other malarky > ok 1 - only strips a single BOM, not multiple > ok 2 - expected to throw > 1..2 > ok 5 - better errors when faced with \\b and other malarky # time=3.503ms > > # Subtest: throws SyntaxError for unexpected token > ok 1 - expected to throw > 1..1 > ok 6 - throws SyntaxError for unexpected token # time=1.166ms > > # Subtest: throws SyntaxError for unexpected end of JSON > ok 1 - expected to throw > 1..1 > ok 7 - throws SyntaxError for unexpected end of JSON # time=1ms > > # Subtest: throws SyntaxError for unexpected number > ok 1 - expected to throw > 1..1 > ok 8 - throws SyntaxError for unexpected number # time=1.023ms > > # Subtest: SyntaxError with less context (limited start) > ok 1 - expected to throw > 1..1 > ok 9 - SyntaxError with less context (limited start) # time=0.884ms > > # Subtest: SyntaxError with less context (limited end) > ok 1 - expected to throw > 1..1 > ok 10 - SyntaxError with less context (limited end) # time=0.885ms > > # Subtest: throws TypeError for undefined > ok 1 - expected to throw: TypeError Cannot parse undefined > 1..1 > ok 11 - throws TypeError for undefined # time=0.781ms > > # Subtest: throws TypeError for non-strings > ok 1 - expected to throw: TypeError Cannot parse [object Map] > 1..1 > ok 12 - throws TypeError for non-strings # time=0.733ms > > # Subtest: throws TypeError for empty arrays > ok 1 - expected to throw: TypeError Cannot parse an empty array > 1..1 > ok 13 - throws TypeError for empty arrays # time=0.695ms > > # Subtest: handles empty string helpfully > ok 1 - expected to throw > 1..1 > ok 14 - handles empty string helpfully # time=0.872ms > > # Subtest: json parse error class > ok 1 - type is function > ok 2 - gets the original error attached > ok 3 - should be equal > ok 4 - should be equal > ok 5 - should be equal > ok 6 - should be equal > ok 7 - should not match pattern provided > ok 8 - gets the original error attached > ok 9 - should be equal > ok 10 - should be equal > ok 11 - should match pattern provided > 1..11 > ok 15 - json parse error class # time=4.535ms > > # Subtest: parse without exception > ok 1 - does not throw > ok 2 - parses json string > ok 3 - parses json buffer > ok 4 - parses json buffer with bom > 1..4 > ok 16 - parse without exception # time=1.323ms > > 1..16 > # time=198.213ms > } > > 1..1 > # time=917.052ms > ----------|---------|----------|---------|---------|------------------- > File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s > ----------|---------|----------|---------|---------|------------------- > All files | 100 | 100 | 100 | 100 | > index.js | 100 | 100 | 100 | 100 | > ----------|---------|----------|---------|---------|------------------- > /bin/sh -ex debian/tests/pkg-js/test > + tap -J test/index.js > TAP version 13 > (node:3398321) DeprecationWarning: deepEqual() is deprecated, use same() > instead > (Use `node --trace-deprecation ...` to show where the warning was created) > not ok 1 - test/index.js # time=85.623ms > --- > env: {} > file: test/index.js > timeout: 30000 > command: /usr/bin/node > args: > - test/index.js > stdio: > - 0 > - pipe > - 2 > cwd: /<<PKGBUILDDIR>> > exitCode: 1 > ... > { > # Subtest: parses JSON > ok 1 - does the same thing > not ok 2 - t.done is not a function > --- > stack: | > Test.<anonymous> (test/index.js:15:5) > Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40) > /usr/share/nodejs/libtap/lib/test.js:369:21 > Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7) > Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15) > /usr/share/nodejs/libtap/lib/test.js:485:13 > TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5) > Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14) > at: > line: 15 > column: 5 > file: test/index.js > function: Test.<anonymous> > type: TypeError > tapCaught: testFunctionThrow > test: parses JSON > source: |2 > t.deepEqual(JSON.parse(data), parseJson(data), 'does the same > thing') > t.done() > ----^ > }) > ... > > 1..2 > # failed 1 of 2 tests > not ok 1 - parses JSON # time=25.919ms > > # Subtest: throws SyntaxError for unexpected token > ok 1 - expected to throw: SyntaxError Unexpected token o in JSON at > position 1 while parsing near 'foo' > not ok 2 - t.done is not a function > --- > stack: | > Test.<anonymous> (test/index.js:24:5) > Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40) > /usr/share/nodejs/libtap/lib/test.js:369:21 > Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7) > Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15) > /usr/share/nodejs/libtap/lib/test.js:485:13 > TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5) > Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14) > at: > line: 24 > column: 5 > file: test/index.js > function: Test.<anonymous> > type: TypeError > tapCaught: testFunctionThrow > test: throws SyntaxError for unexpected token > source: |2 > ) > t.done() > ----^ > }) > ... > > 1..2 > # failed 1 of 2 tests > not ok 2 - throws SyntaxError for unexpected token # time=6.528ms > > # Subtest: throws SyntaxError for unexpected end of JSON > ok 1 - expected to throw: SyntaxError Unexpected end of JSON input > while parsing near '{"foo: bar}' > not ok 2 - t.done is not a function > --- > stack: | > Test.<anonymous> (test/index.js:33:5) > Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40) > /usr/share/nodejs/libtap/lib/test.js:369:21 > Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7) > Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15) > /usr/share/nodejs/libtap/lib/test.js:485:13 > TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5) > Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14) > at: > line: 33 > column: 5 > file: test/index.js > function: Test.<anonymous> > type: TypeError > tapCaught: testFunctionThrow > test: throws SyntaxError for unexpected end of JSON > source: |2 > ) > t.done() > ----^ > }) > ... > > 1..2 > # failed 1 of 2 tests > not ok 3 - throws SyntaxError for unexpected end of JSON # time=4.9ms > > # Subtest: throws SyntaxError for unexpected number > ok 1 - expected to throw: SyntaxError Unexpected number in JSON at > position 8 > not ok 2 - t.done is not a function > --- > stack: | > Test.<anonymous> (test/index.js:42:5) > Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40) > /usr/share/nodejs/libtap/lib/test.js:369:21 > Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7) > Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15) > /usr/share/nodejs/libtap/lib/test.js:485:13 > TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5) > Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14) > at: > line: 42 > column: 5 > file: test/index.js > function: Test.<anonymous> > type: TypeError > tapCaught: testFunctionThrow > test: throws SyntaxError for unexpected number > source: |2 > ) > t.done() > ----^ > }) > ... > > 1..2 > # failed 1 of 2 tests > not ok 4 - throws SyntaxError for unexpected number # time=4.665ms > > # Subtest: SyntaxError with less context (limited start) > ok 1 - expected to throw: SyntaxError Unexpected end of JSON input > while parsing near '...3210' > not ok 2 - t.done is not a function > --- > stack: | > Test.<anonymous> (test/index.js:50:5) > Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40) > /usr/share/nodejs/libtap/lib/test.js:369:21 > Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7) > Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15) > /usr/share/nodejs/libtap/lib/test.js:485:13 > TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5) > Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14) > at: > line: 50 > column: 5 > file: test/index.js > function: Test.<anonymous> > type: TypeError > tapCaught: testFunctionThrow > test: SyntaxError with less context (limited start) > source: >2 > new SyntaxError('Unexpected end of JSON input while parsing > near \'...3210\'')) > t.done() > ----^ > > }) > ... > > 1..2 > # failed 1 of 2 tests > not ok 5 - SyntaxError with less context (limited start) # time=4.753ms > > # Subtest: SyntaxError with less context (limited end) > ok 1 - expected to throw: SyntaxError Unexpected token a in JSON at > position 0 while parsing near 'ab...' > not ok 2 - t.done is not a function > --- > stack: | > Test.<anonymous> (test/index.js:58:5) > Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40) > /usr/share/nodejs/libtap/lib/test.js:369:21 > Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7) > Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15) > /usr/share/nodejs/libtap/lib/test.js:485:13 > TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5) > Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14) > at: > line: 58 > column: 5 > file: test/index.js > function: Test.<anonymous> > type: TypeError > tapCaught: testFunctionThrow > test: SyntaxError with less context (limited end) > source: >2 > new SyntaxError('Unexpected token a in JSON at position 0 > while parsing near \'ab...\'')) > t.done() > ----^ > > }) > ... > > 1..2 > # failed 1 of 2 tests > not ok 6 - SyntaxError with less context (limited end) # time=4.45ms > > # Subtest: throws TypeError for undefined > ok 1 - expected to throw: TypeError Cannot parse undefined > not ok 2 - t.done is not a function > --- > stack: | > Test.<anonymous> (test/index.js:66:5) > Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40) > /usr/share/nodejs/libtap/lib/test.js:369:21 > Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7) > Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15) > /usr/share/nodejs/libtap/lib/test.js:485:13 > TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5) > Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14) > at: > line: 66 > column: 5 > file: test/index.js > function: Test.<anonymous> > type: TypeError > tapCaught: testFunctionThrow > test: throws TypeError for undefined > source: |2 > ) > t.done() > ----^ > }) > ... > > 1..2 > # failed 1 of 2 tests > not ok 7 - throws TypeError for undefined # time=5.055ms > > # Subtest: throws TypeError for non-strings > ok 1 - expected to throw: TypeError Cannot parse [object Map] > not ok 2 - t.done is not a function > --- > stack: | > Test.<anonymous> (test/index.js:74:5) > Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40) > /usr/share/nodejs/libtap/lib/test.js:369:21 > Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7) > Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15) > /usr/share/nodejs/libtap/lib/test.js:485:13 > TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5) > Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14) > at: > line: 74 > column: 5 > file: test/index.js > function: Test.<anonymous> > type: TypeError > tapCaught: testFunctionThrow > test: throws TypeError for non-strings > source: |2 > ) > t.done() > ----^ > }) > ... > > 1..2 > # failed 1 of 2 tests > not ok 8 - throws TypeError for non-strings # time=4.323ms > > # Subtest: throws TypeError for empty arrays > ok 1 - expected to throw: TypeError Cannot parse an empty array > not ok 2 - t.done is not a function > --- > stack: | > Test.<anonymous> (test/index.js:82:5) > Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40) > /usr/share/nodejs/libtap/lib/test.js:369:21 > Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7) > Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15) > /usr/share/nodejs/libtap/lib/test.js:485:13 > TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5) > Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14) > at: > line: 82 > column: 5 > file: test/index.js > function: Test.<anonymous> > type: TypeError > tapCaught: testFunctionThrow > test: throws TypeError for empty arrays > source: |2 > ) > t.done() > ----^ > }) > ... > > 1..2 > # failed 1 of 2 tests > not ok 9 - throws TypeError for empty arrays # time=3.935ms > > 1..9 > # failed 9 of 9 tests > # time=85.623ms > } > > 1..1 > # failed 1 test > # time=719.835ms > ----------|---------|----------|---------|---------|------------------- > File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s > ----------|---------|----------|---------|---------|------------------- > All files | 100 | 100 | 100 | 100 | > index.js | 100 | 100 | 100 | 100 | > ----------|---------|----------|---------|---------|------------------- > dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1 The full build log is available from: http://qa-logs.debian.net/2022/04/12/node-json-parse-better-errors_1.0.2+~cs3.3.1-1_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220412;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220412&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please marking it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.