1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Description: iconv.js need to call iconv.node where it is installed
Forwarded: not-needed
Author: Matthew Pideil <matthewp_debian@teledetection.fr>
Reviewed-By: Yadd <yadd@debian.org>
Last-Update: 2021-11-29
--- a/index.js
+++ b/index.js
@@ -23,11 +23,11 @@
let bindings;
try {
- bindings = require('./build/Release/iconv.node');
+ bindings = require('./iconv.node');
}
catch (e) {
if (e.code !== 'MODULE_NOT_FOUND') throw e;
- bindings = require('./build/Debug/iconv.node');
+ bindings = require('./build/Release/iconv.node');
}
const E2BIG = bindings.E2BIG | 0;
|