summaryrefslogtreecommitdiff
path: root/lib/v8.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/v8.js')
-rw-r--r--lib/v8.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/v8.js b/lib/v8.js
index 1a8c70c6d7..5be59cb935 100644
--- a/lib/v8.js
+++ b/lib/v8.js
@@ -24,6 +24,7 @@ const {
} = internalBinding('serdes');
const assert = require('internal/assert');
const { copy } = internalBinding('buffer');
+const { inspect } = require('internal/util/inspect');
const { FastBuffer } = require('internal/buffer');
const { getValidatedPath } = require('internal/fs/utils');
const { toNamespacedPath } = require('path');
@@ -242,7 +243,8 @@ class DefaultSerializer extends Serializer {
i = arrayBufferViewTypeToIndex.get(tag);
if (i === undefined) {
- throw new this._getDataCloneError(`Unknown host object type: ${tag}`);
+ throw new this._getDataCloneError(
+ `Unserializable host object: ${inspect(abView)}`);
}
}
this.writeUint32(i);