package: node-browser-resolve
version: 1.11.3-1
severity: important

While trying to update node-resolve, I found the autopkgtest and build is failing with this error,

1) index.js of module dir
 ✓ alternate main
 ✓ string browser field as main
 ✓ string browser field as main - require subfile
 ✓ string alt browser field as main - require subfile
 ✓ object browser field as main
 ✓ object browser field as main
 2) deep module reference mapping
 3) deep module reference mapping without file extension - .js
 4) deep module reference mapping without file extension - .json
 ✓ object browser field replace file
 ✓ test foobar -> module-b replacement
 ✓ test core -> module-c replacement
 ✓ test core -> module-c replacement with alt browser
 ✓ test foobar -> module-b replacement with transform
 ✓ test ./x -> ./y replacement
 ✓ test foobar -> module-i replacement with transform in replacement
 ✓ object browser field replace file - no paths
 ✓ replace module in browser field object
 ✓ override engine shim
 ✓ alt-browser field
 5) alt-browser deep module reference mapping
 ✓ alt-browser fallback to "browser" on deps of deps
 6) not fail on accessing path name defined in Object.prototype

 18 passing (103ms)
 6 failing

 1) index.js of module dir:
Uncaught AssertionError [ERR_ASSERTION]: Input A expected to strictly equal input B:
+ expected - actual

- {
-   main: 'fixtures'
- }
+ undefined
     at /tmp/tmp.4CFPpTZnNa/test/modules.js:11:16
     at /usr/lib/nodejs/browser-resolve/index.js:269:13
     at /usr/share/nodejs/resolve/lib/async.js:93:25
at maybeUnwrapSymlink (/usr/share/nodejs/resolve/lib/async.js:35:9)
     at /usr/share/nodejs/resolve/lib/async.js:89:24
     at ondir (/usr/share/nodejs/resolve/lib/async.js:264:27)
     at onex (/usr/share/nodejs/resolve/lib/async.js:161:32)
     at /usr/share/nodejs/resolve/lib/async.js:11:20
     at FSReqWrap.oncomplete (fs.js:155:5)

 2) deep module reference mapping:
Uncaught AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Cannot find module 'module-l/direct' from '/tmp/tmp.4CFPpTZnNa/test/fixtures'
     at /tmp/tmp.4CFPpTZnNa/test/modules.js:95:16
     at /usr/lib/nodejs/browser-resolve/index.js:265:24
     at /usr/share/nodejs/resolve/lib/async.js:99:17
     at /usr/share/nodejs/resolve/lib/async.js:97:35
     at processDirs (/usr/share/nodejs/resolve/lib/async.js:244:39)
     at ondir (/usr/share/nodejs/resolve/lib/async.js:265:13)
     at load (/usr/share/nodejs/resolve/lib/async.js:137:43)
     at onex (/usr/share/nodejs/resolve/lib/async.js:162:17)
     at /usr/share/nodejs/resolve/lib/async.js:13:69
     at FSReqWrap.oncomplete (fs.js:154:21)

 3) deep module reference mapping without file extension - .js:
Uncaught AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Cannot find module 'module-n/foo' from '/tmp/tmp.4CFPpTZnNa/test/fixtures'
     at /tmp/tmp.4CFPpTZnNa/test/modules.js:106:16
     at /usr/lib/nodejs/browser-resolve/index.js:265:24
     at /usr/share/nodejs/resolve/lib/async.js:99:17
     at /usr/share/nodejs/resolve/lib/async.js:97:35
     at processDirs (/usr/share/nodejs/resolve/lib/async.js:244:39)
     at ondir (/usr/share/nodejs/resolve/lib/async.js:265:13)
     at load (/usr/share/nodejs/resolve/lib/async.js:137:43)
     at onex (/usr/share/nodejs/resolve/lib/async.js:162:17)
     at /usr/share/nodejs/resolve/lib/async.js:13:69
     at FSReqWrap.oncomplete (fs.js:154:21)

 4) deep module reference mapping without file extension - .json:
Uncaught AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Cannot find module 'module-n/bar' from '/tmp/tmp.4CFPpTZnNa/test/fixtures'
     at /tmp/tmp.4CFPpTZnNa/test/modules.js:113:16
     at /usr/lib/nodejs/browser-resolve/index.js:265:24
     at /usr/share/nodejs/resolve/lib/async.js:99:17
     at /usr/share/nodejs/resolve/lib/async.js:97:35
     at processDirs (/usr/share/nodejs/resolve/lib/async.js:244:39)
     at ondir (/usr/share/nodejs/resolve/lib/async.js:265:13)
     at load (/usr/share/nodejs/resolve/lib/async.js:137:43)
     at onex (/usr/share/nodejs/resolve/lib/async.js:162:17)
     at /usr/share/nodejs/resolve/lib/async.js:13:69
     at FSReqWrap.oncomplete (fs.js:154:21)

 5) alt-browser deep module reference mapping:

Uncaught AssertionError [ERR_ASSERTION]: '/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/alt-browser-field/direct.js' == '/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/alt-browser-field/chromeapp-direct.js'
     + expected - actual

-/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/alt-browser-field/direct.js +/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/alt-browser-field/chromeapp-direct.js

     at /tmp/tmp.4CFPpTZnNa/test/modules.js:292:16
     at /usr/lib/nodejs/browser-resolve/index.js:269:13
     at /usr/share/nodejs/resolve/lib/async.js:93:25
at maybeUnwrapSymlink (/usr/share/nodejs/resolve/lib/async.js:35:9)
     at /usr/share/nodejs/resolve/lib/async.js:89:24
     at onfile (/usr/share/nodejs/resolve/lib/async.js:258:27)
     at onex (/usr/share/nodejs/resolve/lib/async.js:161:32)
     at /usr/share/nodejs/resolve/lib/async.js:11:20
     at FSReqWrap.oncomplete (fs.js:155:5)

 6) not fail on accessing path name defined in Object.prototype:

Uncaught AssertionError [ERR_ASSERTION]: 'toString' == '/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/toString/index.js'
     + expected - actual

     -toString
     +/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/toString/index.js

     at /tmp/tmp.4CFPpTZnNa/test/modules.js:317:16
     at /usr/lib/nodejs/browser-resolve/index.js:269:13
     at /usr/share/nodejs/resolve/lib/async.js:87:38
     at ondir (/usr/share/nodejs/resolve/lib/async.js:264:27)
     at onex (/usr/share/nodejs/resolve/lib/async.js:161:32)
     at /usr/share/nodejs/resolve/lib/async.js:11:20
     at FSReqWrap.oncomplete (fs.js:155:5)


-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to