v8: add new to the throw statement

PR-URL: https://github.com/nodejs/node/pull/13857
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
Ruben Bridgewater authored and Tobias Nießen committed 2017-06-28 20:00:42 +02:00
1 parent 1a452f1928
commit b3e5c4621d
1 file changed
+1 -1
+1 -1
View File
@@ -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);