From 7bd2a3fcb407970babc88650ff030526ccf79f9f Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 2 Jun 2019 16:46:13 +0200 Subject: worker: use DataCloneError for unknown native objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This aligns the behaviour better with the web. PR-URL: https://github.com/nodejs/node/pull/28025 Reviewed-By: Michaƫl Zasso Reviewed-By: Rich Trott Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig Reviewed-By: Tiancheng "Timothy" Gu --- src/node_messaging.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node_messaging.cc') 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(object)); } - THROW_ERR_CANNOT_TRANSFER_OBJECT(env_); + ThrowDataCloneError(env_->clone_unsupported_type_str()); return Nothing(); } -- cgit v1.2.3