diff --git a/lib/v8.js b/lib/v8.js index e5b31564ad63c7..9c1cdccb80839e 100644 --- a/lib/v8.js +++ b/lib/v8.js @@ -15,11 +15,15 @@ 'use strict'; const { Buffer } = require('buffer'); -const { Serializer, Deserializer } = process.binding('serdes'); +const serdesBindings = process.binding('serdes'); const { copy } = process.binding('buffer'); const { objectToString } = require('internal/util'); const { FastBuffer } = require('internal/buffer'); +class Serializer extends serdesBindings.Serializer {} + +class Deserializer extends serdesBindings.Deserializer {} + const { cachedDataVersionTag, setFlagsFromString,