fix #25

used to crash when running node\test\simple\test-regress-GH-3739.js