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: #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>
  • Loading branch information
BridgeAR authored and tniessen committed Jun 28, 2017
1 parent 1a452f1 commit b3e5c46
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 b3e5c46

Please sign in to comment.