diff --git a/test/parallel/test-v8-serdes.js b/test/parallel/test-v8-serdes.js index 9b153739c57270..f080f551396c8b 100644 --- a/test/parallel/test-v8-serdes.js +++ b/test/parallel/test-v8-serdes.js @@ -236,3 +236,10 @@ const hostObject = new (internalBinding('js_stream').JSStream)(); /^TypeError: buffer must be a TypedArray or a DataView$/, ); } + +{ + // Regression test for https://github.com/nodejs/node/issues/37978 + assert.throws(() => { + new v8.Deserializer(new v8.Serializer().releaseBuffer()).readDouble(); + }, /ReadDouble\(\) failed/); +}