mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
1a452f1928
commit
b3e5c4621d
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user