Skip to content

Commit

Permalink
v8: add new to the throw statement
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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]>
  • Loading branch information
BridgeAR authored and jasnell committed Aug 17, 2018
1 parent 69efa9f commit 60c81c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v8.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 60c81c0

Please sign in to comment.