From b3e5c4621dbf639e6d98a997c673537851d46795 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 21 Jun 2017 20:24:31 +0200 Subject: [PATCH] v8: add new to the throw statement PR-URL: https://github.com/nodejs/node/pull/13857 Reviewed-By: Refael Ackermann Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson --- lib/v8.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v8.js b/lib/v8.js index ba95c98dadc1ee..fccc39edc6833f 100644 --- a/lib/v8.js +++ b/lib/v8.js @@ -154,7 +154,7 @@ class DefaultSerializer extends Serializer { i = arrayBufferViewTypeToIndex.get(tag); if (i === undefined) { - throw this._getDataCloneError(`Unknown host object type: ${tag}`); + throw new this._getDataCloneError(`Unknown host object type: ${tag}`); } } this.writeUint32(i);