Skip to content

Commit b3e5c46

Browse files
BridgeARtniessen
authored andcommitted
v8: add new to the throw statement
PR-URL: #13857 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 1a452f1 commit b3e5c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/v8.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class DefaultSerializer extends Serializer {
154154
i = arrayBufferViewTypeToIndex.get(tag);
155155

156156
if (i === undefined) {
157-
throw this._getDataCloneError(`Unknown host object type: ${tag}`);
157+
throw new this._getDataCloneError(`Unknown host object type: ${tag}`);
158158
}
159159
}
160160
this.writeUint32(i);

0 commit comments

Comments
 (0)