[Pkg-javascript-devel] Bug#1008141: FTBFS: unable to use iconv with nodejs >= 14

Yadd yadd at debian.org
Wed Mar 23 08:29:29 GMT 2022


Package: nodejs
Version: 16.13.2+really14.19.1~dfsg-5
Severity: serious
Tags: ftbfs
Justification: FTBFS

During node-iconv rebuild, test fails:

 node --trace-uncaught test/run-tests.js
internal/util/comparisons.js:386
  memos.val1.delete(val1);
             ^^^^^^

SyntaxError: Unexpected token 'delete'
Thrown at:
    at compileForInternalLoader (internal/bootstrap/loaders.js:285:18)
    at nativeModuleRequire (internal/bootstrap/loaders.js:315:14)
    at lazyLoadComparison (assert.js:78:22)
    at deepEqual (assert.js:468:34)
    at /tmp/tt/node_modules/iconv/test/test-basic.js:44:8
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)

Error is not related to node-iconv build: you can reproduce the problem
using upstream build:

$ npm i iconv
$ cd node_modules/iconv
$ node --trace-uncaught test/run-tests.js
  [ same error ]



More information about the Pkg-javascript-devel mailing list