Due to breaking changes in v8 swig has issues with node.js versions newer than the boron lts branch. swig/swig#968 should fix this issue, but it hasn't been merged yet. Do you have any ideas as to how I could get this to work for newer node versions?