test: add regression test for #11257
adds regression test for #11257 (closed), I've confirmed that this test fails on versions of Node < 8, and works on latest.
CC: @michaelglass, @addaleax
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines