summaryrefslogtreecommitdiff
path: root/src/node_messaging.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_messaging.cc')
-rw-r--r--src/node_messaging.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_messaging.cc b/src/node_messaging.cc
index 0e782ef726..ba39d01dc3 100644
--- a/src/node_messaging.cc
+++ b/src/node_messaging.cc
@@ -232,7 +232,7 @@ class SerializerDelegate : public ValueSerializer::Delegate {
return WriteMessagePort(Unwrap<MessagePort>(object));
}
- THROW_ERR_CANNOT_TRANSFER_OBJECT(env_);
+ ThrowDataCloneError(env_->clone_unsupported_type_str());
return Nothing<bool>();
}