Disable wrapping of struct ctors to workaround NodeJS 16.6 ABI break

This commit is contained in:
Reuben Morais 2021-08-01 23:25:18 +02:00
parent 1a423a4c8d
commit 9d44e2f506

View File

@ -63,3 +63,6 @@ npm-pack: clean package.json index.ts npm-dev
stt_wrap.cxx: stt.i ds-swig
$(DS_SWIG_ENV) swig -c++ -javascript -node stt.i
# Hack: disable wrapping of constructors to avoid NodeJS 16.6 ABI compat break
sed -i.bak '/SetCallHandler/d' stt_wrap.cxx
rm stt_wrap.cxx.bak